1
0
Fork 0

Merge pull request #4064 from annando/fix-group

Bugfix to PR 4046: Calls to a renamed function had been changed
This commit is contained in:
Hypolite Petovan 2017-12-14 14:25:30 -05:00 committed by GitHub
commit 4269c108c1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View file

@ -4783,7 +4783,7 @@ function api_friendica_group_create($type)
intval($uid)
);
if (count($contact))
$result = Group::create_member($uid, $name, $cid, $gid);
$result = Group::addMember($gid, $cid);
else {
$erroraddinguser = true;
$errorusers[] = $cid;
@ -4846,7 +4846,7 @@ function api_friendica_group_update($type)
);
if (count($contact)) {
$result = Group::create_member($uid, $name, $cid, $gid);
$result = Group::addMember($gid, $cid);
} else {
$erroraddinguser = true;
$errorusers[] = $cid;

View file

@ -174,7 +174,7 @@ function group_content(App $a) {
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']);