diff --git a/functions.inc.php b/functions.inc.php index e3f37fb4..20ea1099 100644 --- a/functions.inc.php +++ b/functions.inc.php @@ -62,7 +62,7 @@ function fields($table) { $result = $mysql->query("SHOW FULL COLUMNS FROM " . idf_escape($table)); if ($result) { while ($row = $result->fetch_assoc()) { - preg_match('~^([^(]+)(?:\\((.+)\\))?( unsigned)?( zerofill)?$~', $row["Type"], $match); + preg_match('~^([^( ]+)(?:\\((.+)\\))?( unsigned)?( zerofill)?$~', $row["Type"], $match); $return[$row["Field"]] = array( "field" => $row["Field"], "type" => $match[1],