Merge pull request #31828 from nextcloud/fix/do-not-ignore-deleteGroup-result

Do not ignore return value of deleteGroup from backend
pull/31841/head
Côme Chilliet 2022-04-04 22:04:20 +07:00 committed by GitHub
commit 51405868b2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

@ -354,8 +354,7 @@ class Group implements IGroup {
}
foreach ($this->backends as $backend) {
if ($backend->implementsActions(\OC\Group\Backend::DELETE_GROUP)) {
$result = true;
$backend->deleteGroup($this->gid);
$result = $result || $backend->deleteGroup($this->gid);
}
}
if ($result) {