summaryrefslogtreecommitdiff
path: root/actions/all.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@prodromou.name>2008-07-22 12:23:32 -0400
committerEvan Prodromou <evan@prodromou.name>2008-07-22 12:23:32 -0400
commit9515303b14288041576c50c1729f874c2e17191f (patch)
tree160191ea4010e30501edaf4099f93ce910e4bca2 /actions/all.php
parent97b1552c9a02a0f11118685f5d9475941ba81454 (diff)
notices and counts
darcs-hash:20080722162332-84dde-75801a271f50789377aa7a3467223286c372ec6c.gz
Diffstat (limited to 'actions/all.php')
-rw-r--r--actions/all.php6
1 files changed, 1 insertions, 5 deletions
diff --git a/actions/all.php b/actions/all.php
index 0f8cf587c..944fec6d4 100644
--- a/actions/all.php
+++ b/actions/all.php
@@ -78,12 +78,8 @@ class AllAction extends StreamAction {
$page = 1;
}
- $notice = $user->noticesWithFriends(($page-1)*NOTICES_PER_PAGE, NOTICES_PER_PAGE + 1);
+ list($cnt, $notice) = $user->noticesWithFriends(($page-1)*NOTICES_PER_PAGE, NOTICES_PER_PAGE + 1);
- # XXX: revisit constant scope
-
- $cnt = $notice->find();
-
if ($cnt > 0) {
common_element_start('ul', array('id' => 'notices'));
for ($i = 0; $i < min($cnt, NOTICES_PER_PAGE); $i++) {