Hi,

I m getting Warnigs On my page.I had made my own form in drupal modules.

Warning is:warning: Invalid argument supplied for foreach() in C:\xampp\htdocs\TherapistMgmtSystem\code\hotel\includes\form.inc on line 950.

Comments

alexanderpas’s picture

please provide detailed steps to replicate.

less == more

annu_singh’s picture

Hi,

I think so that this is the cause of error.
I had created blocks. Suppose i had called a function abc for block.

i.e. is
function abc()
{
return drupal_get_form('xyz');
}

function xyz()
{
$form = array();

made form

return $form;
}
Is there any warning issue in this code.

Thanks,
Annu