[Web] fix broken sogo-sso

This commit is contained in:
FreddleSpl0it 2023-03-14 18:30:18 +01:00
parent cb7e8f91b6
commit fdbddb9f93
No known key found for this signature in database
GPG Key ID: 00E14E7634F4BEC5
1 changed files with 2 additions and 1 deletions

View File

@ -1281,7 +1281,6 @@ function mailbox($_action, $_type, $_data = null, $_extra = null) {
'log' => array(__FUNCTION__, $_action, $_type, $_data_log, $_attr),
'msg' => array('mailbox_added', htmlspecialchars($username))
);
return true;
break;
case 'resource':
$domain = idn_to_ascii(strtolower(trim($_data['domain'])), 0, INTL_IDNA_VARIANT_UTS46);
@ -5287,4 +5286,6 @@ function mailbox($_action, $_type, $_data = null, $_extra = null) {
if ($_action != 'get' && in_array($_type, array('domain', 'alias', 'alias_domain', 'mailbox', 'resource')) && getenv('SKIP_SOGO') != "y") {
update_sogo_static_view();
}
return true;
}