summaryrefslogtreecommitdiff
path: root/actions
diff options
context:
space:
mode:
authorEvan Prodromou <evan@prodromou.name>2008-05-20 09:05:35 -0400
committerEvan Prodromou <evan@prodromou.name>2008-05-20 09:05:35 -0400
commite18c5321c49e8559cea55d1130dbfe436f2867a7 (patch)
treeca4e973f8c7a829365ceb08116d5955881f0385b /actions
parent9bbf34c51c9675923926a0477b364c872976a8a4 (diff)
break out utility functions to util.php
darcs-hash:20080520130535-84dde-5414005cdbd8d39bb548c75388893c7827f2fb16.gz
Diffstat (limited to 'actions')
-rw-r--r--actions/showstream.php6
1 files changed, 2 insertions, 4 deletions
diff --git a/actions/showstream.php b/actions/showstream.php
index d40b81581..094a7efbb 100644
--- a/actions/showstream.php
+++ b/actions/showstream.php
@@ -194,8 +194,7 @@ class ShowstreamAction extends StreamAction {
// XXX: WORM cache this
$subs = DB_DataObject::factory('subscription');
$subs->subscriber = $profile->id;
- $subs->whereAdd("subscriber=".$profile->id);
- $subs_count = $subs->count(DB_DATAOBJECT_WHEREADD_ONLY);
+ $subs_count = $subs->count();
if (!$subs_count) {
$subs_count = 0;
@@ -203,8 +202,7 @@ class ShowstreamAction extends StreamAction {
$subbed = DB_DataObject::factory('subscription');
$subbed->subscribed = $profile->id;
- $subbed->whereAdd("subscribed=".$profile->id);
- $subbed_count = $subbed->count(DB_DATAOBJECT_WHEREADD_ONLY);
+ $subbed_count = $subbed->count();
if (!$subbed_count) {
$subbed_count = 0;