don't include blocked contacts in total

This commit is contained in:
Friendika 2010-11-08 02:45:22 -08:00
parent a8d6d72b7b
commit 2c27bda385

View File

@ -1390,7 +1390,7 @@ function contact_block() {
$a = get_app(); $a = get_app();
if((! is_array($a->profile)) || ($a->profile['hide-friends'])) if((! is_array($a->profile)) || ($a->profile['hide-friends']))
return $o; return $o;
$r = q("SELECT COUNT(*) AS `total` FROM `contact` WHERE `uid` = %d AND `self` = 0 ", $r = q("SELECT COUNT(*) AS `total` FROM `contact` WHERE `uid` = %d AND `self` = 0 AND `blocked` = 0 and `pending` = 0",
intval($a->profile['uid']) intval($a->profile['uid'])
); );
if(count($r)) { if(count($r)) {