Unreport: [phpBB Debug] PHP Notice: in file /portal/block/news.php on line 168: Undefined variable: result

Comment: Not defined, delete these 2 lines?
This commit is contained in:
Christian
2008-10-03 12:53:43 +00:00
parent 9c9c2b80ab
commit 28e06756b6
2 changed files with 6 additions and 4 deletions

View File

@@ -179,8 +179,9 @@ else
// 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;
// Not defined, delete these 2 lines?
//$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;
$template->assign_block_vars('announcements_row', array(
'ATTACH_ICON_IMG' => ($fetch_news[$i]['attachment'] && $config['allow_attachments']) ? $user->img('icon_topic_attach', $user->lang['TOTAL_ATTACHMENTS']) : '',

View File

@@ -165,8 +165,9 @@ else
// 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;
// Not defined, delete these 2 lines?
//$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;
$template->assign_block_vars('news_row', array(
'ATTACH_ICON_IMG' => ($fetch_news[$i]['attachment'] && $config['allow_attachments']) ? $user->img('icon_topic_attach', $user->lang['TOTAL_ATTACHMENTS']) : '',