php error announcements block

Post Reply

Topic author
mk1200
Active Member
Posts: 16
Joined: 17. December 2008 16:08
phpBB.com User: mk1200

php error announcements block

Post 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?
User avatar

Kevin
Site Admin
Posts: 2989
Joined: 7. January 2006 20:11
phpBB.de User: Saint
phpBB.com User: Saint_hh
Location: Hamburg
Contact:

Re: php error announcements block

Post by Kevin »

What is the version number of the announcements.php (file header)?
~~~ They say the definition of madness is doing the same thing and expecting a different result ~~~

Kein Support per PN / No support via PM!

Topic author
mk1200
Active Member
Posts: 16
Joined: 17. December 2008 16:08
phpBB.com User: mk1200

Re: php error announcements block

Post by mk1200 »

* @version $Id: announcements.php 376 2008-09-20 21:18:46Z icedcold $
User avatar

Kevin
Site Admin
Posts: 2989
Joined: 7. January 2006 20:11
phpBB.de User: Saint
phpBB.com User: Saint_hh
Location: Hamburg
Contact:

Re: php error announcements block

Post 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.
~~~ They say the definition of madness is doing the same thing and expecting a different result ~~~

Kein Support per PN / No support via PM!
Post Reply

Return to “Modifications Support”