Skip to content

Commit

Permalink
Don't overwrite variable
Browse files Browse the repository at this point in the history
  • Loading branch information
vrana committed Nov 11, 2019
1 parent c24dd79 commit 5a507ec
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions adminer/drivers/mysql.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -891,9 +891,8 @@ function routine($name, $type) {
$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]"))),
Expand Down

0 comments on commit 5a507ec

Please sign in to comment.