Truncates long enum and set values

This commit is contained in:
lorilee
2010-07-19 16:55:49 -07:00
parent b6e01a9b04
commit ddd5860901

View File

@@ -242,6 +242,9 @@ while ($row = PMA_DBI_fetch_assoc($fields_rs)) {
// for the case ENUM('–','“') // for the case ENUM('–','“')
$type = htmlspecialchars($type); $type = htmlspecialchars($type);
if(strlen($type) > $GLOBALS['cfg']['LimitChars']) {
$type = substr($type, 0, $GLOBALS['cfg']['LimitChars']);
}
$type_nowrap = ''; $type_nowrap = '';