php error announcements block
Posted: 5. January 2009 04:27
[04-Jan-2009 19:18:18 -28800] [phpBB Debug] [client ] [File portal.php] PHP Notice: in file /home/boxerf5/public_html/portal/block/announcements.php on line 182 : Undefined variable: result
I commented this out:
No more errors and the homepage looks the same. What is this supposed to do?
I commented this out:
Code: Select all
// Grab icons
$icons = $cache->obtain_icons();
$forum_data = $db->sql_fetchrow($result);
$s_display_active = ($forum_data['forum_type'] == FORUM_CAT && ($forum_data['forum_flags'] & FORUM_FLAG_ACTIVE_TOPICS)) ? true : false;