Fix for console displaying REQUEST_URI

This commit is contained in:
slawkens 2024-11-18 23:47:31 +01:00
parent 5b858c521a
commit 01660bd2b4

View File

@ -151,7 +151,8 @@ class OTS_DB_MySQL extends OTS_Base_DB
}
if($this->logged) {
log_append('database.log', $_SERVER['REQUEST_URI'] . PHP_EOL . $this->getLog());
$currentScript = $_SERVER['REQUEST_URI'] ?? $_SERVER['SCRIPT_FILENAME'];
log_append('database.log', $currentScript . PHP_EOL . $this->getLog());
}
}