Errors when trying to use addnodeif
SocialNicheGuru - July 11, 2008 - 17:34
| Project: | Addnode |
| Version: | 5.x-2.x-dev |
| Component: | User interface |
| Category: | bug report |
| Priority: | critical |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Description
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

#1
subscribe
#2
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.