do not call evaluateGroupMigrations when newGroups is null

Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
This commit is contained in:
Arthur Schiwon 2022-09-21 14:51:40 +02:00
parent eb887e1376
commit f5173a98af
No known key found for this signature in database
GPG key ID: 7424F1874854DF23

View file

@ -665,7 +665,9 @@ class UserBackend implements IApacheBackend, UserInterface, IUserBackend {
$this->logger->error('Failed to add user to group: {exception}', ['app' => 'user_saml', 'exception' => $e->getMessage()]);
}
// TODO: drop following line with dropping NC 23 support
$this->groupManager->evaluateGroupMigrations($newGroups);
if (is_array($newGroups)) {
$this->groupManager->evaluateGroupMigrations($newGroups);
}
}
}