Topic: Invalid argument supplied for foreach() in /index.php on line 176
Hi!
I have today several errors like this in my apache2 error.log :
PHP Warning: Invalid argument supplied for foreach() in /myboard/index.php on line 176 :
// There are new posts in this forum, but have we read all of them already?
176 foreach ($new_topics[$cur_forum['fid']] as $check_topic_id => $check_last_post)
{
if ((empty($tracked_topics['topics'][$check_topic_id]) || $tracked_topics['topics'][$check_topic_id] < $check_last_post) && (empty($tracked_topics['forums'][$cur_forum['fid']]) || $tracked_topics['forums'][$cur_forum['fid']] < $check_last_post))
{
$forum_page['item_status']['new'] = 'new';
$forum_page['item_title']['status'] = '<small>'.sprintf($lang_index['Forum has new'], '<a href="'.forum_link($forum_url['search_new_results'], $cur_forum['fid']).'" title="'.$lang_index['New posts title'].'">'.$lang_index['Forum new posts'].'</a>').'</small>';
break;
}
}
Do you know the cause of this error?
Thank you!