Update SqlDb.php

This commit is contained in:
Roman Kelesidis 2024-12-08 20:10:05 +07:00
commit d7c05d85ec

View file

@ -60,7 +60,7 @@ class SqlDb
global $DBS; global $DBS;
$this->cfg = array_combine($this->cfg_keys, $cfg_values); $this->cfg = array_combine($this->cfg_keys, $cfg_values);
$this->dbg_enabled = (Dev::sqlDebugAllowed() || !empty($_COOKIE['explain'])); $this->dbg_enabled = Dev::sqlDebugAllowed();
$this->do_explain = ($this->dbg_enabled && !empty($_COOKIE['explain'])); $this->do_explain = ($this->dbg_enabled && !empty($_COOKIE['explain']));
$this->slow_time = SQL_SLOW_QUERY_TIME; $this->slow_time = SQL_SLOW_QUERY_TIME;