summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvan Prodromou <evan@prodromou.name>2008-05-28 13:34:17 -0400
committerEvan Prodromou <evan@prodromou.name>2008-05-28 13:34:17 -0400
commit182aa9a101f31d476e4e1528f611778ef7f628dc (patch)
tree3fb135da543c9096df94f9627d9a7c12af664cfd
parent0a60c577de82be067af03098ac47ce2de0f7b5bd (diff)
better page numbers
darcs-hash:20080528173417-84dde-033ab1f9a30c1b19c1f2b5a5b6ea652d94c226e7.gz
-rw-r--r--actions/showstream.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/actions/showstream.php b/actions/showstream.php
index ee30c4416..c66718cfe 100644
--- a/actions/showstream.php
+++ b/actions/showstream.php
@@ -261,7 +261,7 @@ class ShowstreamAction extends StreamAction {
$notice->orderBy('created DESC');
- $page = $this->arg('page') || 1;
+ $page = ($this->arg('page')) ? ($this->arg('page')+0) : 1;
$notice->limit((($page-1)*NOTICES_PER_PAGE), NOTICES_PER_PAGE + 1);