From 86c472f4f79e2fa97eb99358ac8b142ab3f17f97 Mon Sep 17 00:00:00 2001 From: Oliver Schramm Date: Mon, 20 Oct 2014 13:25:07 +0200 Subject: [PATCH] [ticket/13186] Don't show link on post count when search disabled PHPBB3-13186 --- phpBB/viewtopic.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpBB/viewtopic.php b/phpBB/viewtopic.php index 75276d7bfc..7bedcdfb49 100644 --- a/phpBB/viewtopic.php +++ b/phpBB/viewtopic.php @@ -1248,7 +1248,7 @@ while ($row = $db->sql_fetchrow($result)) 'online' => false, 'jabber' => ($row['user_jabber'] && $auth->acl_get('u_sendim')) ? append_sid("{$phpbb_root_path}memberlist.$phpEx", "mode=contact&action=jabber&u=$poster_id") : '', - 'search' => ($auth->acl_get('u_search')) ? append_sid("{$phpbb_root_path}search.$phpEx", "author_id=$poster_id&sr=posts") : '', + 'search' => ($config['load_search'] && $auth->acl_get('u_search')) ? append_sid("{$phpbb_root_path}search.$phpEx", "author_id=$poster_id&sr=posts") : '', 'author_full' => get_username_string('full', $poster_id, $row['username'], $row['user_colour']), 'author_colour' => get_username_string('colour', $poster_id, $row['username'], $row['user_colour']),