correctly return 0 for zero followers
darcs-hash:20080722164129-84dde-be64fd4d2fff5951f2d182e44ec1eb457bddd51c.gz
This commit is contained in:
parent
905ba4998b
commit
0323ca5c8e
|
@ -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') {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user