Skip to content

Instantly share code, notes, and snippets.

@mjhmatt
Created October 18, 2017 10:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mjhmatt/921925740e5a3ec54efb2b681035d5e6 to your computer and use it in GitHub Desktop.
Save mjhmatt/921925740e5a3ec54efb2b681035d5e6 to your computer and use it in GitHub Desktop.
Group Invite
$groups = $mysqli->query("
SELECT og_membership.etid, og.gid AS 'group'
FROM og_membership
LEFT JOIN og on og_membership.gid=og.etid
WHERE og_membership.entity_type = 'user'"
);
$i=0;
while($data = mysqli_fetch_array($groups)){
groups_join_group($data['group'],$data['etid']);
$i++;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment