aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/modules/acp/acp_permissions.php
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/modules/acp/acp_permissions.php')
-rw-r--r--phpBB/modules/acp/acp_permissions.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/phpBB/modules/acp/acp_permissions.php b/phpBB/modules/acp/acp_permissions.php
index d9db7b1bf0..85b2cda164 100644
--- a/phpBB/modules/acp/acp_permissions.php
+++ b/phpBB/modules/acp/acp_permissions.php
@@ -1121,7 +1121,11 @@ class acp_permissions
{
$sql_where = 'AND (' . phpbb::$db->sql_in_set('a.auth_option_id', $option_ids) . ' OR ' . phpbb::$db->sql_in_set('a.auth_role_id', $role_ids) . ')';
}
- else
+ else if (sizeof($role_ids))
+ {
+ $sql_where = 'AND ' . phpbb::$db->sql_in_set('a.auth_role_id', $role_ids);
+ }
+ else if (sizeof($option_ids))
{
$sql_where = 'AND ' . phpbb::$db->sql_in_set('a.auth_option_id', $option_ids);
}