]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
sub
authorEvan Prodromou <evan@prodromou.name>
Sun, 18 May 2008 01:33:12 +0000 (21:33 -0400)
committerEvan Prodromou <evan@prodromou.name>
Sun, 18 May 2008 01:33:12 +0000 (21:33 -0400)
darcs-hash:20080518013312-84dde-382047d577719dd4f0fd39768546b6bb43b1933c.gz

actions/subscriptions.php

index 5976b2839f949988be7c8ebd5bdcf80808ed9e6f..69f57e98bc746afd9a13e4bf7d90677e91bbd19c 100644 (file)
@@ -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();