1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-12 01:24:17 +02:00

Save memory

This commit is contained in:
Jakub Vrana
2011-01-20 23:12:34 +01:00
parent 33aec2c764
commit ef9d6d4512
2 changed files with 10 additions and 2 deletions

View File

@@ -147,7 +147,7 @@ $q = $_GET["sql"]; // overwrite $q from if ($_POST) to save memory
if ($_POST) {
$q = $_POST["query"];
} elseif ($_GET["history"] == "all") {
$q = implode(";\n\n\n", $history); // rtrim(, ';') would possibly damage DELIMITER
$q = $history;
} elseif ($_GET["history"] != "") {
$q = $history[$_GET["history"]];
}