PHP Warning: Invalid argument supplied for foreach() in /home/synergie/public_html/ss/libraries/joomla/database/database/mysql.php on line 377
It comes up intermittently but often in both front and back of my joomla website. I am not expert in this area but it appears to be out of scope for everyone I ask for help. Since I cannot stop the error from occurring I was hoping you could help me to disable or block it from reporting.
this is the code I am dealing with:
// If we want the whole field data object add that to the list.
//else
{
foreach ($fields as $field)
{
$result[$field->Field] = $field;
}
}
return $result;