summaryrefslogtreecommitdiff
path: root/modules/rss/controllers/rss.php
diff options
context:
space:
mode:
authorTim Almdal <tnalmdal@shaw.ca>2009-02-24 19:19:58 +0000
committerTim Almdal <tnalmdal@shaw.ca>2009-02-24 19:19:58 +0000
commit550d46da666a1159eda58fba17b1f3d920682d0c (patch)
treed4458d17dacc4889afe0c5e11fe6c9f28012b176 /modules/rss/controllers/rss.php
parent5b35490be1e58d32f2dcc5c3f948ce821051c596 (diff)
Added a block to the siebar that lists the available feeds
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 c550ec68..4e99ad93 100644
--- a/modules/rss/controllers/rss.php
+++ b/modules/rss/controllers/rss.php
@@ -164,7 +164,7 @@ class Rss_Controller extends Controller {
$comments = $orm->find_all(self::$page_size, ($page - 1) * self::$page_size);
$max_pages = ceil($orm->count_last_query() / self::$page_size);
- if ($page > $max_pages) {
+ if ($max_pages && $page > $max_pages) {
url::redirect("rss/comments/{$item->id}?page=$max_pages");
}
@@ -202,6 +202,6 @@ class Rss_Controller extends Controller {
}
rest::http_content_type(rest::RSS);
- print $view;
+ print $view;
}
} \ No newline at end of file