don't show blocked/pending contacts
This commit is contained in:
parent
ea4c6080f9
commit
be203d592d
1 changed files with 1 additions and 1 deletions
2
boot.php
2
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)) {
|
||||
|
|
Loading…
Reference in a new issue