1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-17 20:01:25 +02:00

Allow using number_type() as pattern

This commit is contained in:
Jakub Vrana
2018-02-06 14:52:12 +01:00
parent d3914ea58e
commit b649fb2f3f
4 changed files with 6 additions and 6 deletions

View File

@@ -820,7 +820,7 @@ class Adminer {
foreach ($row as $key => $val) {
$field = $fields[$key];
$row[$key] = ($val !== null
? unconvert_field($field, preg_match('~' . number_type() . '~', $field["type"]) && $val != '' ? $val : q($val))
? unconvert_field($field, preg_match(number_type(), $field["type"]) && $val != '' ? $val : q($val))
: "NULL"
);
}