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

This commit is contained in:
andryyy
2020-04-29 21:09:13 +02:00
parent 2007b0ffc9
commit a6247fc13f

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