aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/search.php
diff options
context:
space:
mode:
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'];