mirror of
https://github.com/vrana/adminer.git
synced 2025-08-13 18:14:07 +02:00
Don't refer to last array element by count
git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@741 7c3ca157-0c34-0410-bff1-cbf682f78f5c
This commit is contained in:
@@ -7,7 +7,7 @@ if (!$error && $_POST) {
|
||||
@set_time_limit(0); // set_time_limit() can be disabled
|
||||
$query = str_replace("\r", "", $query); // parser looks for \n
|
||||
$query = rtrim($query);
|
||||
if (strlen($query) && $history[count($history)-1] != $query) { // don't add repeated
|
||||
if (strlen($query) && (!$history || end($history) != $query)) { // don't add repeated
|
||||
$history[] = $query;
|
||||
}
|
||||
$delimiter = ";";
|
||||
|
Reference in New Issue
Block a user