From e94224ecc7cf7bd7bba0b2352bd8e61a927b4186 Mon Sep 17 00:00:00 2001 From: Ruslan Uzdenov Date: Mon, 14 Dec 2009 17:43:37 +0000 Subject: [PATCH] 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 --- phpBB/docs/CHANGELOG.html | 1 + phpBB/search.php | 3 +++ 2 files changed, 4 insertions(+) diff --git a/phpBB/docs/CHANGELOG.html b/phpBB/docs/CHANGELOG.html index 6b309c45b0..f0bc0f6a44 100644 --- a/phpBB/docs/CHANGELOG.html +++ b/phpBB/docs/CHANGELOG.html @@ -118,6 +118,7 @@
  • [Fix] Correct rendering of prosilver quick reply under IE6. (Bug #54115 - Patch by Raimon)
  • [Fix] Correct wording for "How do I show an image below my username" question answer in FAQ. (Bug #23935)
  • [Fix] Handle export of private messages where all recipients were deleted. (Bug #50985)
  • +
  • [Fix] Correctly get unread status information for global announcements in search results.
  • [Change] Move redirect into a hidden field to avoid issues with mod_security. (Bug #54145)
  • [Change] Log activation through inactive users ACP. (Bug #30145)
  • [Change] Send time of last item instead of current time in ATOM Feeds. (Bug #53305)
  • 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'];