1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-30 21:40:43 +02:00

Merge branch 'develop-ascraeus' into develop

This commit is contained in:
Joas Schilling
2015-01-23 17:32:57 +01:00
3 changed files with 87 additions and 1 deletions

View File

@@ -1526,7 +1526,15 @@ class tools implements tools_interface
}
else
{
$default_val = "'" . $column_data[1] . "'";
// Integers need to have 0 instead of empty string as default
if (strpos($column_type, 'INT') === 0)
{
$default_val = '0';
}
else
{
$default_val = "'" . $column_data[1] . "'";
}
$return_array['null'] = 'NULL';
$sql .= 'NULL ';
}