From 8bde9364716bae9e014a909f0e88aad2e466245c Mon Sep 17 00:00:00 2001 From: Ice Date: Mon, 18 Aug 2008 17:30:34 +0000 Subject: [PATCH] Fixing kevin's fix --- root/portal/includes/functions.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/root/portal/includes/functions.php b/root/portal/includes/functions.php index 72888121..66f34b20 100644 --- a/root/portal/includes/functions.php +++ b/root/portal/includes/functions.php @@ -83,7 +83,7 @@ function phpbb_fetch_posts($forum_from, $permissions, $number_of_posts, $text_le $str_where = ''; - $topic_icons = array(); + $topic_icons = array(0); $have_icons = 0; @@ -353,7 +353,7 @@ function phpbb_fetch_posts($forum_from, $permissions, $number_of_posts, $text_le $i++; } - $posts['topic_icons'] = ( (!empty($topic_icons)) && $have_icons ) ? true : false; + $posts['topic_icons'] = ( (max($topic_icons) > 0 ) && $have_icons ) ? true : false; $posts['topic_count'] = $i;