hello i got the same problem at this time
i have not find solution some forum say php5 don't get this error
if somebody can fix it would be helpfull

here maybe a solution to be adapted with the code

if (is_array($tab))
{
foreach($tab as $key=>$value)
{
...
}
}
else
{
...
}

thank you

More...