From be203d592d6aca02359ef4714fb9c9ce8a617bad Mon Sep 17 00:00:00 2001 From: Friendika Date: Sat, 6 Nov 2010 16:34:26 -0700 Subject: [PATCH] don't show blocked/pending contacts --- boot.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/boot.php b/boot.php index 3fdc971b2..cdca1c11e 100644 --- a/boot.php +++ b/boot.php @@ -1400,7 +1400,7 @@ function contact_block() { $o .= '

' . t('No contacts') . '

'; 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)) {