diff options
Diffstat (limited to 'actions/subscribed.php')
-rw-r--r-- | actions/subscribed.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/actions/subscribed.php b/actions/subscribed.php index 8e0b2bc6b..158e34f9d 100644 --- a/actions/subscribed.php +++ b/actions/subscribed.php @@ -41,12 +41,12 @@ class SubscribedAction extends Action { function show_subscribed($profile, $page) { - $sub = DB_DataObject::factory('subscriptions'); - $sub->subscribed = $profile->id; + $subs = DB_DataObject::factory('subscription'); + $subs->subscribed = $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(); |