blob: c694d7957f1b3d60258c875528a43504f2bf26d0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
<?php
$user = elgg_get_logged_in_user_entity();
$group = get_entity(get_input('group_guid'));
if ($user && $group) {
if (!check_entity_relationship($user->guid, 'groupchat', $group->guid)) {
error_log("joinen ok");
add_entity_relationship($user->guid, 'groupchat', $group->guid);
}
}
echo "OK";
error_log("join ok");
?>
|