mirror of
https://github.com/netzbegruenung/user_saml.git
synced 2024-05-02 17:14:53 +02:00
do not call evaluateGroupMigrations when newGroups is null
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
This commit is contained in:
parent
eb887e1376
commit
f5173a98af
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue