mirror of
https://github.com/friendica/friendica
synced 2024-12-22 14:38:02 +01:00
stray debug statements, forgot to filter pending contacts
This commit is contained in:
parent
3c4e6d3461
commit
df1904b204
1 changed files with 5 additions and 5 deletions
|
@ -177,25 +177,25 @@ function random_profile() {
|
|||
|
||||
|
||||
function contacts_not_grouped($uid,$start = 0,$count = 0) {
|
||||
dbg(1);
|
||||
|
||||
if(! $count) {
|
||||
$r = q("select count(*) as total from contact where uid = %d and self = 0 and id not in (select distinct(`contact-id`) from group_member where uid = %d) ",
|
||||
intval($uid),
|
||||
intval($uid)
|
||||
);
|
||||
dbg(0);
|
||||
|
||||
return $r;
|
||||
|
||||
|
||||
}
|
||||
dbg(1);
|
||||
$r = q("select * from contact where uid = %d and self = 0 and id not in (select distinct(`contact-id`) from group_member where uid = %d) limit %d, %d",
|
||||
|
||||
$r = q("select * from contact where uid = %d and self = 0 and id not in (select distinct(`contact-id`) from group_member where uid = %d) and blocked = 0 and pending = 0 limit %d, %d",
|
||||
intval($uid),
|
||||
intval($uid),
|
||||
intval($start),
|
||||
intval($count)
|
||||
);
|
||||
dbg(0);
|
||||
|
||||
return $r;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue