]> git.mxchange.org Git - friendica.git/commitdiff
don't include blocked contacts in total
authorFriendika <info@friendika.com>
Mon, 8 Nov 2010 10:45:22 +0000 (02:45 -0800)
committerFriendika <info@friendika.com>
Mon, 8 Nov 2010 10:45:22 +0000 (02:45 -0800)
boot.php

index d3050b0395eee3fdc7e478dfdf6a2dcf6b154af8..985cc922cbc3777536c7b769e6a1df5c79a0213d 100644 (file)
--- 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)) {