From: Evan Prodromou Date: Tue, 22 Jul 2008 16:41:29 +0000 (-0400) Subject: correctly return 0 for zero followers X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=0323ca5c8ed0db53dbc9168862d2ee901b440503;p=quix0rs-gnu-social.git correctly return 0 for zero followers darcs-hash:20080722164129-84dde-be64fd4d2fff5951f2d182e44ec1eb457bddd51c.gz --- diff --git a/lib/twitterapi.php b/lib/twitterapi.php index d27152cbc1..b9db78dbca 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') {