From: Friendika Date: Mon, 8 Nov 2010 10:45:22 +0000 (-0800) Subject: don't include blocked contacts in total X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=2c27bda385fe429423a2e0ffa3022846867748d0;p=friendica.git don't include blocked contacts in total --- diff --git a/boot.php b/boot.php index d3050b0395..985cc922cb 100644 --- a/boot.php +++ b/boot.php @@ -1390,7 +1390,7 @@ function contact_block() { $a = get_app(); if((! is_array($a->profile)) || ($a->profile['hide-friends'])) 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']) ); if(count($r)) {