Page 1 of 1

php error announcements block

Posted: 5. January 2009 04:27
by mk1200
[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:

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;
No more errors and the homepage looks the same. What is this supposed to do?

Re: php error announcements block

Posted: 5. January 2009 12:50
by Kevin
What is the version number of the announcements.php (file header)?

Re: php error announcements block

Posted: 5. January 2009 13:26
by mk1200
* @version $Id: announcements.php 376 2008-09-20 21:18:46Z icedcold $

Re: php error announcements block

Posted: 5. January 2009 21:29
by Kevin
Ah, thx!

It is already fixed: http://board3deportal.svn.sourceforge.n ... f_format=h

This is for displaying the topic icons.
You should get:

Code: Select all

// Grab icons
            $icons = $cache->obtain_icons(); 
back in to get it working. The rest could stay deleted.