diff options
author | Evan Prodromou <git@evanprodromou.name> | 2009-01-29 08:37:40 -0500 |
---|---|---|
committer | Evan Prodromou <git@evanprodromou.name> | 2009-01-29 08:37:40 -0500 |
commit | b6fbb9462c5087e00c6812a9e83aa49fae5403a5 (patch) | |
tree | d84f2fa4578020dd9f49cc9f86811f360581a13d /actions/subscriptions.php | |
parent | 04b3add162674df2ebdb4e4e347b7dbea934580b (diff) |
proper pagination for subs and members
Diffstat (limited to 'actions/subscriptions.php')
-rw-r--r-- | actions/subscriptions.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/actions/subscriptions.php b/actions/subscriptions.php index d7ba0d624..3fbea2039 100644 --- a/actions/subscriptions.php +++ b/actions/subscriptions.php @@ -84,6 +84,8 @@ class SubscriptionsAction extends GalleryAction $offset = ($this->page-1) * PROFILES_PER_PAGE; $limit = PROFILES_PER_PAGE + 1; + $cnt = 0; + if ($this->tag) { $subscriptions = $this->user->getTaggedSubscriptions($this->tag, $offset, $limit); } else { @@ -92,7 +94,7 @@ class SubscriptionsAction extends GalleryAction if ($subscriptions) { $subscriptions_list = new SubscriptionsList($subscriptions, $this->user, $this); - $subscriptions_list->show(); + $cnt = $subscriptions_list->show(); } $subscriptions->free(); |