]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
correctly return 0 for zero followers
authorEvan Prodromou <evan@prodromou.name>
Tue, 22 Jul 2008 16:41:29 +0000 (12:41 -0400)
committerEvan Prodromou <evan@prodromou.name>
Tue, 22 Jul 2008 16:41:29 +0000 (12:41 -0400)
darcs-hash:20080722164129-84dde-be64fd4d2fff5951f2d182e44ec1eb457bddd51c.gz

lib/twitterapi.php

index d27152cbc15ae6e31b3677886955914af4dec27d..b9db78dbcab79a608e6a1d4cde621c952c871b88 100644 (file)
@@ -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') {