diff options
author | friendica <info@friendica.com> | 2011-12-05 02:16:59 -0800 |
---|---|---|
committer | friendica <info@friendica.com> | 2011-12-05 02:16:59 -0800 |
commit | c8d5274ceea95bdf9df5ca2ab698fa9860319e31 (patch) | |
tree | e2d977f26214e30ba4e6e6059d58e26ad287bce3 /include/text.php | |
parent | 116e20c89dc5874912c7e3870623c747f75238ce (diff) | |
download | volse-hubzilla-c8d5274ceea95bdf9df5ca2ab698fa9860319e31.tar.gz volse-hubzilla-c8d5274ceea95bdf9df5ca2ab698fa9860319e31.tar.bz2 volse-hubzilla-c8d5274ceea95bdf9df5ca2ab698fa9860319e31.zip |
data structures to support hidden friends
Diffstat (limited to 'include/text.php')
-rw-r--r-- | include/text.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/text.php b/include/text.php index c4fd76e3e..29e53c663 100644 --- a/include/text.php +++ b/include/text.php @@ -539,7 +539,7 @@ function contact_block() { 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 AND `blocked` = 0 and `pending` = 0", + $r = q("SELECT COUNT(*) AS `total` FROM `contact` WHERE `uid` = %d AND `self` = 0 AND `blocked` = 0 and `pending` = 0 AND `hidden` = 0", intval($a->profile['uid']) ); if(count($r)) { @@ -550,7 +550,7 @@ function contact_block() { $micropro = Null; } else { - $r = q("SELECT * FROM `contact` WHERE `uid` = %d AND `self` = 0 AND `blocked` = 0 and `pending` = 0 ORDER BY RAND() LIMIT %d", + $r = q("SELECT * FROM `contact` WHERE `uid` = %d AND `self` = 0 AND `blocked` = 0 and `pending` = 0 AND `hidden` = 0 ORDER BY RAND() LIMIT %d", intval($a->profile['uid']), intval($shown) ); |