summaryrefslogtreecommitdiff
path: root/modules/rss/controllers/rss.php
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2009-09-16 20:37:06 -0700
committerBharat Mediratta <bharat@menalto.com>2009-09-16 20:37:06 -0700
commite94eaa6b88f1311455e12df4f1e5099a4c314f94 (patch)
treeca737c9aafde0b8d4843ed1ed8bd07db60d616cf /modules/rss/controllers/rss.php
parent4e1e24ba1a976cd0bb7ca7dd03c6001f906a25dd (diff)
parent5490057480f17e5810cf8b9e558769ebd74d4b27 (diff)
Merge branch 'master' of git@github.com:gallery/gallery3
Diffstat (limited to 'modules/rss/controllers/rss.php')
-rw-r--r--modules/rss/controllers/rss.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/rss/controllers/rss.php b/modules/rss/controllers/rss.php
index b89bed40..015d6032 100644
--- a/modules/rss/controllers/rss.php
+++ b/modules/rss/controllers/rss.php
@@ -21,13 +21,13 @@ class Rss_Controller extends Controller {
public static $page_size = 20;
public function feed($module_id, $feed_id, $id=null) {
- $page = $this->input->get("page", 1);
+ $page = (int) $this->input->get("page", 1);
if ($page < 1) {
url::redirect(url::merge(array("page" => 1)));
}
// Configurable page size between 1 and 100, default 20
- $page_size = max(1, min(100, $this->input->get("page_size", self::$page_size)));
+ $page_size = max(1, min(100, (int) $this->input->get("page_size", self::$page_size)));
// Run the appropriate feed callback
if (module::is_active($module_id)) {