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 /mod | |
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 'mod')
-rw-r--r-- | mod/poco.php | 4 | ||||
-rw-r--r-- | mod/viewcontacts.php | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/mod/poco.php b/mod/poco.php index 6331131fa..dd8df6008 100644 --- a/mod/poco.php +++ b/mod/poco.php @@ -54,7 +54,7 @@ function poco_init(&$a) { and uid in (select uid from pconfig where cat = 'system' and k = 'suggestme' and v = 1) "); } else { - $r = q("SELECT count(*) as `total` from `contact` where `uid` = %d and blocked = 0 and pending = 0 + $r = q("SELECT count(*) as `total` from `contact` where `uid` = %d and blocked = 0 and pending = 0 and hidden = 0 $sql_extra ", intval($user['uid']) ); @@ -79,7 +79,7 @@ function poco_init(&$a) { } else { - $r = q("SELECT * from `contact` where `uid` = %d and blocked = 0 and pending = 0 + $r = q("SELECT * from `contact` where `uid` = %d and blocked = 0 and pending = 0 and hidden = 0 $sql_extra LIMIT %d, %d", intval($user['uid']), intval($startIndex), diff --git a/mod/viewcontacts.php b/mod/viewcontacts.php index f9510bd6b..cd8d100ed 100644 --- a/mod/viewcontacts.php +++ b/mod/viewcontacts.php @@ -25,13 +25,13 @@ function viewcontacts_content(&$a) { $o .= '<h3>' . t('View Contacts') . '</h3>'; - $r = q("SELECT COUNT(*) as `total` FROM `contact` WHERE `uid` = %d AND `blocked` = 0 AND `pending` = 0", + $r = q("SELECT COUNT(*) as `total` FROM `contact` WHERE `uid` = %d AND `blocked` = 0 AND `pending` = 0 AND `hidden` = 0 ", intval($a->profile['uid']) ); if(count($r)) $a->set_pager_total($r[0]['total']); - $r = q("SELECT * FROM `contact` WHERE `uid` = %d AND `blocked` = 0 AND `pending` = 0 ORDER BY `name` ASC LIMIT %d , %d ", + $r = q("SELECT * FROM `contact` WHERE `uid` = %d AND `blocked` = 0 AND `pending` = 0 AND `hidden` = 0 ORDER BY `name` ASC LIMIT %d , %d ", intval($a->profile['uid']), intval($a->pager['start']), intval($a->pager['itemspage']) |