aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/acp/auth.php
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/includes/acp/auth.php')
-rw-r--r--phpBB/includes/acp/auth.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/phpBB/includes/acp/auth.php b/phpBB/includes/acp/auth.php
index bc1ef75d1a..a5b6dba520 100644
--- a/phpBB/includes/acp/auth.php
+++ b/phpBB/includes/acp/auth.php
@@ -821,7 +821,7 @@ class auth_admin extends auth
}
// Remove current auth options...
- $auth_option_ids = array();
+ $auth_option_ids = array((int)$any_option_id);
foreach ($auth as $auth_option => $auth_setting)
{
$auth_option_ids[] = (int) $this->option_ids[$auth_option];
@@ -830,7 +830,7 @@ class auth_admin extends auth
$sql = "DELETE FROM $table
WHERE $forum_sql
AND $ug_id_sql
- AND auth_option_id IN ($any_option_id, " . implode(', ', $auth_option_ids) . ')';
+ AND ". $db->sql_in_set(auth_option_id, $auth_option_ids);
$db->sql_query($sql);
// Remove those having a role assigned... the correct type of course...