1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-06-01 20:19:13 +02:00

[ticket/13544] Use integer case because $role_id is an int

PHPBB3-13544
This commit is contained in:
brunoais 2015-01-26 22:00:20 +00:00
parent 73d1bf9fea
commit 4b16add055

View File

@ -538,7 +538,7 @@ class permission implements \phpbb\db\migration\tool\tool_interface
$sql = 'DELETE FROM ' . ACL_ROLES_DATA_TABLE . '
WHERE ' . $this->db->sql_in_set('auth_option_id', $to_remove) . '
AND role_id = ' . $this->db->sql_escape($role_id);
AND role_id = ' . (int) $role_id;
$this->db->sql_query($sql);
break;