diff options
author | Marc Alexander <admin@m-a-styles.de> | 2015-01-22 10:11:08 +0100 |
---|---|---|
committer | Marc Alexander <admin@m-a-styles.de> | 2015-01-22 10:11:08 +0100 |
commit | 816465bfe90c955a9fc7b748b0ff22b5e775c7a9 (patch) | |
tree | 262a4a2259f370575b616bc9da9f2fe4b2a44c67 /phpBB/phpbb/db | |
parent | 1367fc234fce4f2e79c02e3780b5727faa5992e4 (diff) | |
download | forums-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.php | 2 |
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'; } |