aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--phpBB/feed.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/phpBB/feed.php b/phpBB/feed.php
index 64850c0109..602b7f90b3 100644
--- a/phpBB/feed.php
+++ b/phpBB/feed.php
@@ -724,7 +724,7 @@ class phpbb_feed_post_base extends phpbb_feed_base
if (isset($this->topic_id))
{
- $sql_array['WHERE'] .= 'AND a.topic_id = ' . $this->topic_id;
+ $sql_array['WHERE'] .= 'AND a.topic_id = ' . (int) $this->topic_id;
}
else if (isset($this->forum_id))
{
@@ -734,7 +734,7 @@ class phpbb_feed_post_base extends phpbb_feed_base
'ON' => 'a.topic_id = t.topic_id'
)
);
- $sql_array['WHERE'] .= 'AND t.forum_id = ' . $this->forum_id;
+ $sql_array['WHERE'] .= 'AND t.forum_id = ' . (int) $this->forum_id;
}
$sql = $db->sql_build_query('SELECT', $sql_array);