mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-12 22:38:52 +00:00
[ticket/11271] Typecast forum and topic id to integer
PHPBB3-11271
This commit is contained in:
parent
dc37f3a0e3
commit
3bae72d164
1 changed files with 2 additions and 2 deletions
|
@ -724,7 +724,7 @@ class phpbb_feed_post_base extends phpbb_feed_base
|
||||||
|
|
||||||
if (isset($this->topic_id))
|
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))
|
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'
|
'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);
|
$sql = $db->sql_build_query('SELECT', $sql_array);
|
||||||
|
|
Loading…
Add table
Reference in a new issue