1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-28 12:30:42 +02:00

[ticket/11271] Typecast forum and topic id to integer

PHPBB3-11271
This commit is contained in:
Dhruv
2013-10-04 20:51:17 +05:30
parent dc37f3a0e3
commit 3bae72d164

View File

@@ -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);