Browse Source

query to find un-grouped contacts

pull/229/head
friendica 10 years ago
parent
commit
73487989c0
  1. 13
      include/Contact.php

13
include/Contact.php

@ -173,4 +173,15 @@ function random_profile() {
if(count($r))
return dirname($r[0]['url']);
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…
Cancel
Save