1
0
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:
Marc Alexander
2015-01-22 10:11:08 +01:00
parent 1367fc234f
commit 816465bfe9

View File

@@ -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';
}