From 2b8a19e5ddf2328dd2b660afa260ae3d982ea2bd Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Sat, 17 May 2008 21:33:12 -0400 Subject: [PATCH] sub darcs-hash:20080518013312-84dde-382047d577719dd4f0fd39768546b6bb43b1933c.gz --- actions/subscriptions.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/actions/subscriptions.php b/actions/subscriptions.php index 5976b2839f..69f57e98bc 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(); -- 2.39.5