aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDhruv <dhruv.goel92@gmail.com>2013-10-04 20:51:17 +0530
committerDhruv <dhruv.goel92@gmail.com>2013-12-27 00:22:27 +0530
commit3bae72d164455e8dacd3033540e36d1e1bd313d0 (patch)
tree44995549226d6aa2f58747ccd1ce2ea5787f3c57
parentdc37f3a0e352a13ba029b45643d1babacc6aa477 (diff)
downloadforums-3bae72d164455e8dacd3033540e36d1e1bd313d0.tar
forums-3bae72d164455e8dacd3033540e36d1e1bd313d0.tar.gz
forums-3bae72d164455e8dacd3033540e36d1e1bd313d0.tar.bz2
forums-3bae72d164455e8dacd3033540e36d1e1bd313d0.tar.xz
forums-3bae72d164455e8dacd3033540e36d1e1bd313d0.zip
[ticket/11271] Typecast forum and topic id to integer
PHPBB3-11271
-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);