Browse Source

[Web] Skip update_sogo_static_view if sogo is disabled

FreddleSpl0it 2 years ago
parent
commit
64ac6a8891
1 changed files with 1 additions and 1 deletions
  1. 1 1
      data/web/inc/functions.mailbox.inc.php

+ 1 - 1
data/web/inc/functions.mailbox.inc.php

@@ -5264,7 +5264,7 @@ function mailbox($_action, $_type, $_data = null, $_extra = null) {
       }
       }
     break;
     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();
     update_sogo_static_view();
   }
   }
 }
 }