[Web] Do not try to update sogo static view with skip_sogo y

master
andryyy 2020-04-29 21:09:13 +02:00
parent 2007b0ffc9
commit a6247fc13f
No known key found for this signature in database
GPG Key ID: 8EC34FF2794E25EF
1 changed files with 3 additions and 0 deletions

View File

@ -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