mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-17 15:11:40 +02:00
[ticket/15526] Cast bbcode id to INT in merge bbcodes migration
PHPBB3-15526
This commit is contained in:
@@ -65,11 +65,11 @@ class merge_duplicate_bbcodes extends \phpbb\db\migration\container_aware_migrat
|
|||||||
|
|
||||||
$sql = 'UPDATE ' . BBCODES_TABLE . '
|
$sql = 'UPDATE ' . BBCODES_TABLE . '
|
||||||
SET ' . $this->db->sql_build_array('UPDATE', $bbcode_data) . '
|
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);
|
$this->sql_query($sql);
|
||||||
|
|
||||||
$sql = 'DELETE FROM ' . BBCODES_TABLE . '
|
$sql = 'DELETE FROM ' . BBCODES_TABLE . '
|
||||||
WHERE bbcode_id = ' . $with['bbcode_id'];
|
WHERE bbcode_id = ' . (int) $with['bbcode_id'];
|
||||||
$this->sql_query($sql);
|
$this->sql_query($sql);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user