On edit recipients invalid arguments are not passed along

Bèr Kessels - August 16, 2007 - 11:16
Project:FormCorral
Version:5.x-1.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active
Description

   * warning: array_merge() [function.array-merge]: Argument #1 is not an array in /home/ber/Documents/LUX_lux/LUX_lux/drupal/includes/menu.inc on line 415.
    * warning: Missing argument 1 for drupal_get_form() in /home/ber/Documents/LUX_lux/LUX_lux/drupal/includes/form.inc on line 48.
    * warning: Missing argument 1 for drupal_retrieve_form() in /home/ber/Documents/LUX_lux/LUX_lux/drupal/includes/form.inc on line 178.
    * warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, '' was given in /home/ber/Documents/LUX_lux/LUX_lux/drupal/includes/form.inc on line 217.

Hint: often caused by not taking the posibility there are no records in a database. Hence some API will retuurn NULL instead of an empty array. Good practice is to make sure your functions /always/ return the exact same type of var.

#1

Benjamin Melançon - January 4, 2008 - 01:50

Marking http://drupal.org/node/184067 duplicate to this report.

#2

nina_bee - May 5, 2008 - 13:05

Hi! I've the same error. Is there a patch or something to correct this please.
Thanks

 
 

Drupal is a registered trademark of Dries Buytaert.