From 51a574926d883a9979724100954f36a321aeab41 Mon Sep 17 00:00:00 2001 From: Jakub Vrana Date: Thu, 1 Feb 2018 13:08:28 +0100 Subject: [PATCH] Fix variable name --- adminer/include/adminer.inc.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/adminer/include/adminer.inc.php b/adminer/include/adminer.inc.php index 989f6f03..519a526a 100644 --- a/adminer/include/adminer.inc.php +++ b/adminer/include/adminer.inc.php @@ -622,15 +622,15 @@ class Adminer { $query = preg_replace('~[\x80-\xFF]+$~', '', substr($query, 0, 1e6)) . "\n..."; // [\x80-\xFF] - valid UTF-8, \n - can end by one-line comment } $history[$_GET["db"]][] = array($query, time(), $time); // not DB - $_GET["db"] is changed in database.inc.php //! respect $_GET["ns"] - $return = "" . lang('SQL command') . "\n"; + $sql_id = "sql-" . count($history[$_GET["db"]]); + $return = "" . lang('SQL command') . "\n"; $warnings = $driver->warnings(); if ($warnings) { $id = "warnings-" . count($history[$_GET["db"]]); $return = "" . lang('Warnings') . ", $return\n"; } - $id = "sql-" . count($history[$_GET["db"]]); return " " . @date("H:i:s") . "" // @ - time zone may be not set - . " $return