[Web] Skip update_sogo_static_view if sogo is disabled

This commit is contained in:
FreddleSpl0it 2023-01-31 10:54:16 +01:00
parent 72e8180c6b
commit 64ac6a8891
No known key found for this signature in database
GPG Key ID: 00E14E7634F4BEC5

View File

@ -5264,7 +5264,7 @@ function mailbox($_action, $_type, $_data = null, $_extra = null) {
}
break;
}
if ($_action != 'get' && in_array($_type, array('domain', 'alias', 'alias_domain', 'mailbox', 'resource'))) {
if ($_action != 'get' && in_array($_type, array('domain', 'alias', 'alias_domain', 'mailbox', 'resource')) && getenv('SKIP_SOGO') != "y") {
update_sogo_static_view();
}
}