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
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

maria_zk - September 10, 2008 - 01:02

subscribe

#2

kryptik - September 29, 2008 - 18:35
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.

 
 

Drupal is a registered trademark of Dries Buytaert.