fixed table layout for inserting/editing row, fixed select for empty value in enum

This commit is contained in:
Michal Čihař
2003-05-20 13:12:28 +00:00
parent afd03151d6
commit cc4c8d20c0
3 changed files with 7 additions and 4 deletions

View File

@@ -50,8 +50,6 @@ if (!isset($param) || $param[0] == '') {
$shorttype = substr($type, 0, 3);
if ($shorttype == 'set' || $shorttype == 'enu') {
$type = eregi_replace(',', ', ', $type);
// Removes automatic MySQL escape format
$type = str_replace('\'\'', '\\\'', $type);
} else {
$type = eregi_replace('BINARY', '', $type);
$type = eregi_replace('ZEROFILL', '', $type);