From e2ca9e9db55fef4c3b7e87dcbf884b9f7c0d8b61 Mon Sep 17 00:00:00 2001 From: friendica Date: Tue, 30 Oct 2012 14:25:33 -0700 Subject: [PATCH] poco - ignore archived contacts --- mod/poco.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mod/poco.php b/mod/poco.php index acfa3ffaa9..cb9abb340d 100644 --- a/mod/poco.php +++ b/mod/poco.php @@ -56,7 +56,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 and hidden = 0 + $r = q("SELECT count(*) as `total` from `contact` where `uid` = %d and blocked = 0 and pending = 0 and hidden = 0 and archive = 0 $sql_extra ", intval($user['uid']) ); @@ -81,7 +81,7 @@ function poco_init(&$a) { } else { - $r = q("SELECT * from `contact` where `uid` = %d and blocked = 0 and pending = 0 and hidden = 0 + $r = q("SELECT * from `contact` where `uid` = %d and blocked = 0 and pending = 0 and hidden = 0 and archive = 0 $sql_extra LIMIT %d, %d", intval($user['uid']), intval($startIndex), -- 2.39.5