mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-03 23:37:39 +02:00
[ticket/13282] Use strpos() instead of preg_match()
PHPBB3-13282
This commit is contained in:
@@ -1575,7 +1575,7 @@ class tools
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
// Integers need to have 0 instead of empty string as default
|
// Integers need to have 0 instead of empty string as default
|
||||||
if (preg_match('/int/i', $column_type))
|
if (strpos($column_type, 'INT') === 0)
|
||||||
{
|
{
|
||||||
$default_val = '0';
|
$default_val = '0';
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user