mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
[ticket/13282] Use strpos() instead of preg_match()
PHPBB3-13282
This commit is contained in:
parent
1367fc234f
commit
816465bfe9
1 changed files with 1 additions and 1 deletions
|
@ -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';
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue