aboutsummaryrefslogtreecommitdiffstats
path: root/boot.php
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2010-11-08 02:45:22 -0800
committerFriendika <info@friendika.com>2010-11-08 02:45:22 -0800
commit2c27bda385fe429423a2e0ffa3022846867748d0 (patch)
tree777012a087b681453f88cf82efdf04cd34497422 /boot.php
parenta8d6d72b7bcfbd36d37bc36bbc892ddc3ead477e (diff)
downloadvolse-hubzilla-2c27bda385fe429423a2e0ffa3022846867748d0.tar.gz
volse-hubzilla-2c27bda385fe429423a2e0ffa3022846867748d0.tar.bz2
volse-hubzilla-2c27bda385fe429423a2e0ffa3022846867748d0.zip
don't include blocked contacts in total
Diffstat (limited to 'boot.php')
-rw-r--r--boot.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/boot.php b/boot.php
index d3050b039..985cc922c 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)) {