aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb/db
diff options
context:
space:
mode:
authorMarc Alexander <admin@m-a-styles.de>2015-01-22 10:11:08 +0100
committerMarc Alexander <admin@m-a-styles.de>2015-01-22 10:11:08 +0100
commit816465bfe90c955a9fc7b748b0ff22b5e775c7a9 (patch)
tree262a4a2259f370575b616bc9da9f2fe4b2a44c67 /phpBB/phpbb/db
parent1367fc234fce4f2e79c02e3780b5727faa5992e4 (diff)
downloadforums-816465bfe90c955a9fc7b748b0ff22b5e775c7a9.tar
forums-816465bfe90c955a9fc7b748b0ff22b5e775c7a9.tar.gz
forums-816465bfe90c955a9fc7b748b0ff22b5e775c7a9.tar.bz2
forums-816465bfe90c955a9fc7b748b0ff22b5e775c7a9.tar.xz
forums-816465bfe90c955a9fc7b748b0ff22b5e775c7a9.zip
[ticket/13282] Use strpos() instead of preg_match()
PHPBB3-13282
Diffstat (limited to 'phpBB/phpbb/db')
-rw-r--r--phpBB/phpbb/db/tools.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/phpbb/db/tools.php b/phpBB/phpbb/db/tools.php
index ee0d247071..775deccc30 100644
--- a/phpBB/phpbb/db/tools.php
+++ b/phpBB/phpbb/db/tools.php
@@ -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';
}