From 2c27bda385fe429423a2e0ffa3022846867748d0 Mon Sep 17 00:00:00 2001 From: Friendika Date: Mon, 8 Nov 2010 02:45:22 -0800 Subject: [PATCH] don't include blocked contacts in total --- boot.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)) {