SkinEFX Posted March 6, 2003 Share Posted March 6, 2003 I am using the original file, haven't touched it yet. I get this error when I click on login or create new account only. HELP if you know whats wrong Warning: Wrong datatype for second argument in call to in_array in /home2/skindvml/public_html/catalog/includes/boxes/categories.php on line 31 Warning: Wrong datatype for second argument in call to in_array in /home2/skindvml/public_html/catalog/includes/boxes/categories.php on line 38 Warning: Wrong datatype for second argument in call to in_array in /home2/skindvml/public_html/catalog/includes/boxes/categories.php on line 31 Warning: Wrong datatype for second argument in call to in_array in /home2/skindvml/public_html/catalog/includes/boxes/categories.php on line 38 Link to comment Share on other sites More sharing options...
SkinEFX Posted March 6, 2003 Author Share Posted March 6, 2003 if ( ($id) && (in_array($counter, $id)) ) { $categories_string .= '<b>'; } // display category name $categories_string .= $foo[$counter]['name']; if ( ($id) && (in_array($counter, $id)) ) { $categories_string .= '</b>'; } Link to comment Share on other sites More sharing options...
Dave_L Posted March 6, 2003 Share Posted March 6, 2003 I don't know where $id is defined. You could add the following before those lines to check whether $id is an array: var_dump($id); Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.