diff options
author | Andrew Dolgov <[email protected]> | 2017-12-01 21:07:55 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2017-12-01 21:07:55 +0300 |
commit | 7fc303e6ab5c362a755a57d446c3d6b43e43b86d (patch) | |
tree | b798061b807fe232dabe24764174a1b600d6c91f /classes | |
parent | cb13089af141f0937941ef368549dc04dd2035ff (diff) |
query feed headlines: fix limit/offset
Diffstat (limited to 'classes')
-rwxr-xr-x | classes/feeds.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/classes/feeds.php b/classes/feeds.php index 25a1d2e14..a9f479a51 100755 --- a/classes/feeds.php +++ b/classes/feeds.php @@ -1869,7 +1869,7 @@ class Feeds extends Handler_Protected { } if ($limit > 0) { - $limit_query_part = "LIMIT " . $pdo->quote($limit); + $limit_query_part = "LIMIT " . (int)$limit; } $allow_archived = false; @@ -2027,7 +2027,7 @@ class Feeds extends Handler_Protected { $content_query_part = "content, "; if ($limit_query_part) { - $offset_query_part = "OFFSET " . $pdo->quote($offset); + $offset_query_part = "OFFSET " . (int)$offset; } else { $offset_query_part = ""; } |