aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatt Friedman <maf675@gmail.com>2018-01-20 09:48:00 -0800
committerMatt Friedman <maf675@gmail.com>2018-01-20 09:54:45 -0800
commitf08887e2774c480daf6b0d29dc949d2590472ee3 (patch)
tree0448cad1cc4a45bfca98e42cb56f5784cdb5c928
parent227e7cadbad7c4d15695cae7b0054dc53b4dd4e6 (diff)
downloadforums-f08887e2774c480daf6b0d29dc949d2590472ee3.tar
forums-f08887e2774c480daf6b0d29dc949d2590472ee3.tar.gz
forums-f08887e2774c480daf6b0d29dc949d2590472ee3.tar.bz2
forums-f08887e2774c480daf6b0d29dc949d2590472ee3.tar.xz
forums-f08887e2774c480daf6b0d29dc949d2590472ee3.zip
[ticket/15526] Cast bbcode id to INT in merge bbcodes migration
PHPBB3-15526
-rw-r--r--phpBB/phpbb/db/migration/data/v32x/merge_duplicate_bbcodes.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/phpBB/phpbb/db/migration/data/v32x/merge_duplicate_bbcodes.php b/phpBB/phpbb/db/migration/data/v32x/merge_duplicate_bbcodes.php
index 08609b571b..b1ee241f44 100644
--- a/phpBB/phpbb/db/migration/data/v32x/merge_duplicate_bbcodes.php
+++ b/phpBB/phpbb/db/migration/data/v32x/merge_duplicate_bbcodes.php
@@ -65,11 +65,11 @@ class merge_duplicate_bbcodes extends \phpbb\db\migration\container_aware_migrat
$sql = 'UPDATE ' . BBCODES_TABLE . '
SET ' . $this->db->sql_build_array('UPDATE', $bbcode_data) . '
- WHERE bbcode_id = ' . $without['bbcode_id'];
+ WHERE bbcode_id = ' . (int) $without['bbcode_id'];
$this->sql_query($sql);
$sql = 'DELETE FROM ' . BBCODES_TABLE . '
- WHERE bbcode_id = ' . $with['bbcode_id'];
+ WHERE bbcode_id = ' . (int) $with['bbcode_id'];
$this->sql_query($sql);
}
}