From c8d5274ceea95bdf9df5ca2ab698fa9860319e31 Mon Sep 17 00:00:00 2001 From: friendica Date: Mon, 5 Dec 2011 02:16:59 -0800 Subject: data structures to support hidden friends --- mod/viewcontacts.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mod/viewcontacts.php') 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 .= '

' . t('View Contacts') . '

'; - $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']) -- cgit v1.2.3