diff options
author | Evan Prodromou <evan@prodromou.name> | 2008-07-22 12:41:29 -0400 |
---|---|---|
committer | Evan Prodromou <evan@prodromou.name> | 2008-07-22 12:41:29 -0400 |
commit | 0323ca5c8ed0db53dbc9168862d2ee901b440503 (patch) | |
tree | 8a9dec346f1d2770bc28d388730f38ac0a1d501e /lib/twitterapi.php | |
parent | 905ba4998b6388c5a5c23262beff276441d8c393 (diff) |
correctly return 0 for zero followers
darcs-hash:20080722164129-84dde-be64fd4d2fff5951f2d182e44ec1eb457bddd51c.gz
Diffstat (limited to 'lib/twitterapi.php')
-rw-r--r-- | lib/twitterapi.php | 6 |
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') { |