]> git.mxchange.org Git - friendica.git/commitdiff
don't show blocked/pending contacts
authorFriendika <info@friendika.com>
Sat, 6 Nov 2010 23:34:26 +0000 (16:34 -0700)
committerFriendika <info@friendika.com>
Sat, 6 Nov 2010 23:34:26 +0000 (16:34 -0700)
boot.php

index 3fdc971b2ef6dbf6bae8a5b9162bbd0e9ded2300..cdca1c11e4f3d530fdac2d327d43167a00ca0aa8 100644 (file)
--- a/boot.php
+++ b/boot.php
@@ -1400,7 +1400,7 @@ function contact_block() {
                $o .= '<h4 class="contact-h4">' . t('No contacts') . '</h4>';
                return $o;
        }
-       $r = q("SELECT * FROM `contact` WHERE `uid` = %d AND `self` = 0 ORDER BY RAND() LIMIT 24",
+       $r = q("SELECT * FROM `contact` WHERE `uid` = %d AND `self` = 0 AND `blocked` = 0 and `pending` = 0 ORDER BY RAND() LIMIT 24",
                        intval($a->profile['uid'])
        );
        if(count($r)) {