Bug #24472 » 16912.diff
t3lib/class.t3lib_install.php (working copy) | ||
---|---|---|
* @param array $line_array the localconf.php file exploded into an array by linebreaks. (see writeToLocalconf_control())
|
||
* @param string $variable The variable name to find and substitute. This string must match the first part of a trimmed line in the line-array. Matching is done backwards so the last appearing line will be substituted.
|
||
* @param string $value Is the value to be insert for the variable
|
||
* @param boolean $quoteValue Whether the given value should be quoted before being written
|
||
* @param boolean $quoteValue Whether the given value should be quoted before being written
|
||
* @return void
|
||
* @see writeToLocalconf_control()
|
||
*/
|
||
... | ... | |
}
|
||
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')) {
|
||
if (!stristr($row['Extra'],'auto_increment') && !is_null($row['Default'])) {
|
||
$field[] = 'default \''.addslashes($row['Default']).'\'';
|
||
}
|
||
}
|