From ba6a3c01390520532fc2465e601145dd8bad6ef0 Mon Sep 17 00:00:00 2001 From: "Paul S. Owen" Date: Tue, 28 Jan 2003 20:53:41 +0000 Subject: [PATCH] Check for display set when outputting icons git-svn-id: file:///svn/phpbb/trunk@3396 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/posting.php | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/phpBB/posting.php b/phpBB/posting.php index 2ad4d73d08..3ed57389c0 100644 --- a/phpBB/posting.php +++ b/phpBB/posting.php @@ -598,14 +598,17 @@ if (!empty($enable_icons)) foreach ($icons as $id => $data) { - $template->assign_block_vars('topic_icon', array( - 'ICON_ID' => $id, - 'ICON_IMG' => $config['icons_path'] . '/' . $data['img'], - 'ICON_WIDTH' => $data['width'], - 'ICON_HEIGHT' => $data['height'], + if ($data['display']) + { + $template->assign_block_vars('topic_icon', array( + 'ICON_ID' => $id, + 'ICON_IMG' => $config['icons_path'] . '/' . $data['img'], + 'ICON_WIDTH' => $data['width'], + 'ICON_HEIGHT' => $data['height'], - 'S_ICON_CHECKED' => ($id == $icon_id && $mode != 'reply') ? ' checked="checked"' : '') - ); + 'S_ICON_CHECKED' => ($id == $icon_id && $mode != 'reply') ? ' checked="checked"' : '') + ); + } } } }