summaryrefslogtreecommitdiff
path: root/lib/twitterapi.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@prodromou.name>2008-07-22 12:41:29 -0400
committerEvan Prodromou <evan@prodromou.name>2008-07-22 12:41:29 -0400
commit0323ca5c8ed0db53dbc9168862d2ee901b440503 (patch)
tree8a9dec346f1d2770bc28d388730f38ac0a1d501e /lib/twitterapi.php
parent905ba4998b6388c5a5c23262beff276441d8c393 (diff)
correctly return 0 for zero followers
darcs-hash:20080722164129-84dde-be64fd4d2fff5951f2d182e44ec1eb457bddd51c.gz
Diffstat (limited to 'lib/twitterapi.php')
-rw-r--r--lib/twitterapi.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/twitterapi.php b/lib/twitterapi.php
index d27152cbc..b9db78dbc 100644
--- a/lib/twitterapi.php
+++ b/lib/twitterapi.php
@@ -233,10 +233,10 @@ class TwitterapiAction extends Action {
$count = $sub->find();
if ($count > 0) {
- return $count;
+ return $count - 1;
+ } else {
+ return 0;
}
-
- return NULL;
}
function init_document($type='xml') {