mirror of
https://github.com/vrana/adminer.git
synced 2025-08-12 17:44:07 +02:00
Don't overwrite variable
This commit is contained in:
@@ -891,9 +891,8 @@ if (!defined("DRIVER")) {
|
|||||||
$fields = array();
|
$fields = array();
|
||||||
preg_match_all("~$pattern\\s*,?~is", $match[1], $matches, PREG_SET_ORDER);
|
preg_match_all("~$pattern\\s*,?~is", $match[1], $matches, PREG_SET_ORDER);
|
||||||
foreach ($matches as $param) {
|
foreach ($matches as $param) {
|
||||||
$name = str_replace("``", "`", $param[2]) . $param[3];
|
|
||||||
$fields[] = array(
|
$fields[] = array(
|
||||||
"field" => $name,
|
"field" => str_replace("``", "`", $param[2]) . $param[3],
|
||||||
"type" => strtolower($param[5]),
|
"type" => strtolower($param[5]),
|
||||||
"length" => preg_replace_callback("~$enum_length~s", 'normalize_enum', $param[6]),
|
"length" => preg_replace_callback("~$enum_length~s", 'normalize_enum', $param[6]),
|
||||||
"unsigned" => strtolower(preg_replace('~\s+~', ' ', trim("$param[8] $param[7]"))),
|
"unsigned" => strtolower(preg_replace('~\s+~', ' ', trim("$param[8] $param[7]"))),
|
||||||
|
Reference in New Issue
Block a user