Download & Extend

Errors when trying to use addnodeif

Project:Addnode
Version:5.x-2.x-dev
Component:User interface
Category:bug report
Priority:critical
Assigned:Unassigned
Status:active

Issue Summary

I get these errors.

* warning: array_key_exists() [function.array-key-exists]: The first argument should be either a string or an integer in l/sites/all/modules/addnode/addnode.module on line 74.
* warning: Illegal offset type in sites/all/modules/addnode/addnode.module on line 75.

How can I get rid of them?

Chris

Comments

#1

subscribe

#2

Title:Errors when trying to use addnode» Errors when trying to use addnodeif

line 74 replace with
if (!empty($nid) && array_key_exists($nid, $order)) {

still trying to fix the offset problem. I believe it's caused by select boxes with "multi" turned off, activating multi makes the error go away. Also it seems that making sure the content type has some nodes and isn't empty.