aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/search.php
diff options
context:
space:
mode:
authorRuslan Uzdenov <rxu@mail.ru>2009-12-14 17:43:37 +0000
committerRuslan Uzdenov <rxu@mail.ru>2009-12-14 17:43:37 +0000
commite94224ecc7cf7bd7bba0b2352bd8e61a927b4186 (patch)
tree6136072f728cd9d67d8284ba67fbe88cd1ed2c0a /phpBB/search.php
parent2ac753b7258504d53a158a89ea36dbff6df0ca3e (diff)
downloadforums-e94224ecc7cf7bd7bba0b2352bd8e61a927b4186.tar
forums-e94224ecc7cf7bd7bba0b2352bd8e61a927b4186.tar.gz
forums-e94224ecc7cf7bd7bba0b2352bd8e61a927b4186.tar.bz2
forums-e94224ecc7cf7bd7bba0b2352bd8e61a927b4186.tar.xz
forums-e94224ecc7cf7bd7bba0b2352bd8e61a927b4186.zip
Correctly get unread status information for global announcements in search results.
Authorised by: bantu git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@10339 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/search.php')
-rw-r--r--phpBB/search.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/phpBB/search.php b/phpBB/search.php
index 258297d088..c70f389b94 100644
--- a/phpBB/search.php
+++ b/phpBB/search.php
@@ -653,6 +653,9 @@ if ($keywords || $author || $author_id || $search_id || $submit)
$forums = $rowset = $shadow_topic_list = array();
while ($row = $db->sql_fetchrow($result))
{
+ $row['forum_id'] = (int) $row['forum_id'];
+ $row['topic_id'] = (int) $row['topic_id'];
+
if ($row['topic_status'] == ITEM_MOVED)
{
$shadow_topic_list[$row['topic_moved_id']] = $row['topic_id'];