mirror of
https://github.com/friendica/friendica
synced 2024-12-23 01:21:27 +01:00
query to find un-grouped contacts
This commit is contained in:
parent
60871555f5
commit
73487989c0
1 changed files with 12 additions and 1 deletions
|
@ -174,3 +174,14 @@ function random_profile() {
|
||||||
return dirname($r[0]['url']);
|
return dirname($r[0]['url']);
|
||||||
return '';
|
return '';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
function contacts_not_grouped($uid) {
|
||||||
|
$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) ",
|
||||||
|
intval($uid),
|
||||||
|
intval($uid)
|
||||||
|
);
|
||||||
|
|
||||||
|
return $r;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue