mirror of
https://github.com/vrana/adminer.git
synced 2025-08-15 02:54:28 +02:00
Test for empty history
git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@692 7c3ca157-0c34-0410-bff1-cbf682f78f5c
This commit is contained in:
@@ -6,7 +6,7 @@ if (!$error && $_POST) {
|
|||||||
if (is_string($query = (isset($_POST["file"]) ? get_file("sql_file") : $_POST["query"]))) {
|
if (is_string($query = (isset($_POST["file"]) ? get_file("sql_file") : $_POST["query"]))) {
|
||||||
@set_time_limit(0);
|
@set_time_limit(0);
|
||||||
$query = str_replace("\r", "", $query);
|
$query = str_replace("\r", "", $query);
|
||||||
if (strlen($query) && end($history) != $query) {
|
if (strlen($query) && $history[count($history) - 1] != $query) {
|
||||||
$history[] = $query;
|
$history[] = $query;
|
||||||
}
|
}
|
||||||
$delimiter = ";";
|
$delimiter = ";";
|
||||||
|
Reference in New Issue
Block a user