From a6247fc13f20f5c42687c9ad8ce7cc37221e5e43 Mon Sep 17 00:00:00 2001 From: andryyy Date: Wed, 29 Apr 2020 21:09:13 +0200 Subject: [PATCH] [Web] Do not try to update sogo static view with skip_sogo y --- data/web/inc/functions.inc.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/data/web/inc/functions.inc.php b/data/web/inc/functions.inc.php index 03eece88..9f74f89f 100644 --- a/data/web/inc/functions.inc.php +++ b/data/web/inc/functions.inc.php @@ -555,6 +555,9 @@ function formatBytes($size, $precision = 2) { return round(pow(1024, $base - floor($base)), $precision) . $suffixes[floor($base)]; } function update_sogo_static_view() { + if (getenv('SKIP_SOGO') == "y") { + return true; + } global $pdo; global $lang; $stmt = $pdo->query("SELECT 'OK' FROM INFORMATION_SCHEMA.TABLES