mirror of
https://github.com/vrana/adminer.git
synced 2025-08-23 22:52:51 +02:00
Fix undefined variable
This commit is contained in:
@@ -255,7 +255,8 @@ function get_partitions_info($table) {
|
|||||||
*/
|
*/
|
||||||
function process_length($length) {
|
function process_length($length) {
|
||||||
global $driver;
|
global $driver;
|
||||||
return (preg_match("~^\\s*\\(?\\s*$driver->enumLength(?:\\s*,\\s*$enum_length)*+\\s*\\)?\\s*\$~", $length) && preg_match_all("~$enum_length~", $length, $matches)
|
$enum_length = $driver->enumLength;
|
||||||
|
return (preg_match("~^\\s*\\(?\\s*$enum_length(?:\\s*,\\s*$enum_length)*+\\s*\\)?\\s*\$~", $length) && preg_match_all("~$enum_length~", $length, $matches)
|
||||||
? "(" . implode(",", $matches[0]) . ")"
|
? "(" . implode(",", $matches[0]) . ")"
|
||||||
: preg_replace('~^[0-9].*~', '(\0)', preg_replace('~[^-0-9,+()[\]]~', '', $length))
|
: preg_replace('~^[0-9].*~', '(\0)', preg_replace('~[^-0-9,+()[\]]~', '', $length))
|
||||||
);
|
);
|
||||||
|
Reference in New Issue
Block a user