From 816465bfe90c955a9fc7b748b0ff22b5e775c7a9 Mon Sep 17 00:00:00 2001 From: Marc Alexander Date: Thu, 22 Jan 2015 10:11:08 +0100 Subject: [PATCH] [ticket/13282] Use strpos() instead of preg_match() PHPBB3-13282 --- phpBB/phpbb/db/tools.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'; }