Fixed a bug in the module database patcher

This commit is contained in:
sluther 2009-08-07 20:46:15 -07:00
parent e6a4913d05
commit c8e2903766

View File

@ -1166,7 +1166,7 @@ class module
$t_s = $arr_field["$key"]["type"]; $t_s = $arr_field["$key"]["type"];
if(ereg('[(]',$t_s)) if(ereg('[(]',$t_s))
{ {
$ts = explode('[(]',$t_s); $ts = explode('(',$t_s);
$type = $ts[0]; $type = $ts[0];
$size = ereg_replace(')', '', $ts[1]); $size = ereg_replace(')', '', $ts[1]);
$flds[] = Array($field, $type, $size); $flds[] = Array($field, $type, $size);