darcs-hash:20080518013312-84dde-382047d577719dd4f0fd39768546b6bb43b1933c.gz
This commit is contained in:
Evan Prodromou 2008-05-17 21:33:12 -04:00
parent b3c102ec6a
commit 2b8a19e5dd

View 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();