From 0323ca5c8ed0db53dbc9168862d2ee901b440503 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Tue, 22 Jul 2008 12:41:29 -0400 Subject: [PATCH] correctly return 0 for zero followers darcs-hash:20080722164129-84dde-be64fd4d2fff5951f2d182e44ec1eb457bddd51c.gz --- lib/twitterapi.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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') { -- 2.39.5