correctly return 0 for zero followers

darcs-hash:20080722164129-84dde-be64fd4d2fff5951f2d182e44ec1eb457bddd51c.gz
This commit is contained in:
Evan Prodromou 2008-07-22 12:41:29 -04:00
parent 905ba4998b
commit 0323ca5c8e

View File

@ -233,10 +233,10 @@ class TwitterapiAction extends Action {
$count = $sub->find(); $count = $sub->find();
if ($count > 0) { if ($count > 0) {
return $count; return $count - 1;
} else {
return 0;
} }
return NULL;
} }
function init_document($type='xml') { function init_document($type='xml') {