Project

General

Profile

Bug #24472 » 16912-v2.diff

Administrator Admin, 2011-02-11 10:34

View differences:

t3lib/class.t3lib_install.php (working copy)
}
if (!strstr($row['Type'], 'blob') && !strstr($row['Type'], 'text')) {
// Add a default value if the field is not auto-incremented (these fields never have a default definition)
if (!stristr($row['Extra'], 'auto_increment')) {
// and the default value is not NULL
if (!stristr($row['Extra'], 'auto_increment') && !is_null($row['Default'])) {
$field[] = 'default \'' . addslashes($row['Default']) . '\'';
}
}
(2-2/2)