mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 22:10:45 +02:00
[ticket/13282] Use strpos() instead of preg_match()
PHPBB3-13282
This commit is contained in:
@@ -1575,7 +1575,7 @@ class tools
|
||||
else
|
||||
{
|
||||
// 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';
|
||||
}
|
||||
|
Reference in New Issue
Block a user