This commit is contained in:
FreddleSpl0it 2023-09-12 10:07:46 +02:00 committed by DerLinkman
parent 981307a1c6
commit 597d98e1d7
No known key found for this signature in database
GPG Key ID: F109FD97469550A2

View File

@ -155,10 +155,12 @@ while (true) {
logMsg("warning", "No attributes in keycloak found for user " . $user['email']);
continue;
}
if (count($user['attributes']['mailcow_template']) == 0) {
if (!isset($user['attributes']['mailcow_template']) ||
!is_array($user['attributes']['mailcow_template']) ||
count($user['attributes']['mailcow_template']) == 0) {
logMsg("warning", "No mailcow_template in keycloak found for user " . $user['email']);
continue;
};
}
$mailcow_template = $user['attributes']['mailcow_template'];
// try get mailbox user