intval($uid)
);
if (count($contact))
- $result = Group::create_member($uid, $name, $cid, $gid);
+ $result = Group::addMember($gid, $cid);
else {
$erroraddinguser = true;
$errorusers[] = $cid;
);
if (count($contact)) {
- $result = Group::create_member($uid, $name, $cid, $gid);
+ $result = Group::addMember($gid, $cid);
} else {
$erroraddinguser = true;
$errorusers[] = $cid;
if (in_array($change, $preselected)) {
Group::removeMember($group['id'], $change);
} else {
- Group::create_member(local_user(), $group['name'], $change);
+ Group::addMember($group['id'], $change);
}
$members = Contact::getByGroupId($group['id']);