1
0
Fork 0

poco - ignore archived contacts

This commit is contained in:
friendica 2012-10-30 14:25:33 -07:00
parent 68da185cce
commit e2ca9e9db5

View file

@ -56,7 +56,7 @@ function poco_init(&$a) {
and uid in (select uid from pconfig where cat = 'system' and k = 'suggestme' and v = 1) "); and uid in (select uid from pconfig where cat = 'system' and k = 'suggestme' and v = 1) ");
} }
else { 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 ", $sql_extra ",
intval($user['uid']) intval($user['uid'])
); );
@ -81,7 +81,7 @@ function poco_init(&$a) {
} }
else { 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", $sql_extra LIMIT %d, %d",
intval($user['uid']), intval($user['uid']),
intval($startIndex), intval($startIndex),