From: Michael Date: Thu, 14 Dec 2017 18:06:48 +0000 (+0000) Subject: Bugfix: Calls to a renamed function had been changed X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=89ad41aca5acaee12032eaa2704436ca5ce5dad2;p=friendica.git Bugfix: Calls to a renamed function had been changed --- diff --git a/include/api.php b/include/api.php index 8a29c82dd8..52910d4727 100644 --- a/include/api.php +++ b/include/api.php @@ -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; diff --git a/mod/group.php b/mod/group.php index ba7c24c56a..8a6e9309f1 100644 --- a/mod/group.php +++ b/mod/group.php @@ -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']);