1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-12 09:34:10 +02:00

Notices: Avoid accessing offset on null

Thanks to @peterpp at 62017e3.
This commit is contained in:
Jakub Vrana
2025-03-26 04:16:17 +01:00
parent d3be21e000
commit 1b8a428d2f
16 changed files with 37 additions and 27 deletions

View File

@@ -667,7 +667,7 @@ class Adminer {
global $driver;
restart_session();
$history = &get_session("queries");
if (!$history[$_GET["db"]]) {
if (!idx($history, $_GET["db"])) {
$history[$_GET["db"]] = array();
}
if (strlen($query) > 1e6) {