From 182aa9a101f31d476e4e1528f611778ef7f628dc Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Wed, 28 May 2008 13:34:17 -0400 Subject: [PATCH] better page numbers darcs-hash:20080528173417-84dde-033ab1f9a30c1b19c1f2b5a5b6ea652d94c226e7.gz --- actions/showstream.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/actions/showstream.php b/actions/showstream.php index ee30c4416d..c66718cfe8 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);