summaryrefslogtreecommitdiff
path: root/actions
diff options
context:
space:
mode:
authorEvan Prodromou <evan@prodromou.name>2008-05-17 21:33:12 -0400
committerEvan Prodromou <evan@prodromou.name>2008-05-17 21:33:12 -0400
commit2b8a19e5ddf2328dd2b660afa260ae3d982ea2bd (patch)
tree7f17f48740753129525302df697c153719cf1ae2 /actions
parentb3c102ec6a44ef57bf0d06f7bdf7e5024fd80ab9 (diff)
sub
darcs-hash:20080518013312-84dde-382047d577719dd4f0fd39768546b6bb43b1933c.gz
Diffstat (limited to 'actions')
-rw-r--r--actions/subscriptions.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/actions/subscriptions.php b/actions/subscriptions.php
index 5976b2839..69f57e98b 100644
--- a/actions/subscriptions.php
+++ b/actions/subscriptions.php
@@ -38,12 +38,12 @@ class SubscriptionsAction extends Action {
function show_subscriptions($profile, $page) {
- $sub = DB_DataObject::factory('subscription');
- $sub->subscriber = $profile->id;
+ $subs = DB_DataObject::factory('subscription');
+ $subs->subscriber = $profile->id;
# We ask for an extra one to know if we need to do another page
- $sub->limit((($page-1)*SUBSCRIPTIONS_PER_PAGE)+1, SUBSCRIPTIONS_PER_PAGE + 1);
+ $subs->limit((($page-1)*SUBSCRIPTIONS_PER_PAGE)+1, SUBSCRIPTIONS_PER_PAGE + 1);
$subs_count = $subs->find();