From: Evan Prodromou Date: Sun, 18 May 2008 01:33:12 +0000 (-0400) Subject: sub X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=2b8a19e5ddf2328dd2b660afa260ae3d982ea2bd;p=quix0rs-gnu-social.git sub darcs-hash:20080518013312-84dde-382047d577719dd4f0fd39768546b6bb43b1933c.gz --- 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();