From: Jakub Vrana Date: Thu, 1 Feb 2018 12:08:28 +0000 (+0100) Subject: Fix variable name X-Git-Tag: v4.6.0~31 X-Git-Url: https://git.joonet.de/?a=commitdiff_plain;h=51a574926d883a9979724100954f36a321aeab41;p=adminer.git Fix variable name --- 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