]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
better page numbers
authorEvan Prodromou <evan@prodromou.name>
Wed, 28 May 2008 17:34:17 +0000 (13:34 -0400)
committerEvan Prodromou <evan@prodromou.name>
Wed, 28 May 2008 17:34:17 +0000 (13:34 -0400)
darcs-hash:20080528173417-84dde-033ab1f9a30c1b19c1f2b5a5b6ea652d94c226e7.gz

actions/showstream.php

index ee30c4416db3e7ee537ede9adb848289620a753d..c66718cfe86ea3e672491b3a68c80d06dcea91e1 100644 (file)
@@ -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);