mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-06 22:45:02 +02:00
[ticket/13544] Use integer case because $role_id is an int
PHPBB3-13544
This commit is contained in:
parent
73d1bf9fea
commit
4b16add055
@ -538,7 +538,7 @@ class permission implements \phpbb\db\migration\tool\tool_interface
|
|||||||
|
|
||||||
$sql = 'DELETE FROM ' . ACL_ROLES_DATA_TABLE . '
|
$sql = 'DELETE FROM ' . ACL_ROLES_DATA_TABLE . '
|
||||||
WHERE ' . $this->db->sql_in_set('auth_option_id', $to_remove) . '
|
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);
|
$this->db->sql_query($sql);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user