From 5a507ec586b527d11851e48103610bec7d26a0ae Mon Sep 17 00:00:00 2001 From: Jakub Vrana Date: Mon, 11 Nov 2019 13:40:47 +0100 Subject: [PATCH] Don't overwrite variable --- adminer/drivers/mysql.inc.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/adminer/drivers/mysql.inc.php b/adminer/drivers/mysql.inc.php index 07c96ab0..379b131c 100644 --- a/adminer/drivers/mysql.inc.php +++ b/adminer/drivers/mysql.inc.php @@ -891,9 +891,8 @@ if (!defined("DRIVER")) { $fields = array(); preg_match_all("~$pattern\\s*,?~is", $match[1], $matches, PREG_SET_ORDER); foreach ($matches as $param) { - $name = str_replace("``", "`", $param[2]) . $param[3]; $fields[] = array( - "field" => $name, + "field" => str_replace("``", "`", $param[2]) . $param[3], "type" => strtolower($param[5]), "length" => preg_replace_callback("~$enum_length~s", 'normalize_enum', $param[6]), "unsigned" => strtolower(preg_replace('~\s+~', ' ', trim("$param[8] $param[7]"))),