diff --git a/admin/user_list.php b/admin/user_list.php index 1a3d54f1f..e51c8e583 100644 --- a/admin/user_list.php +++ b/admin/user_list.php @@ -264,12 +264,12 @@ if (isset($_POST['delete']) and count($collection) > 0) count($collection) ) ); - $_values = array_values($collection); - foreach ($page['filtered_users'] as $_key => $_value) + foreach ($page['filtered_users'] as $filter_key => $filter_user) { - if (in_array($_value['id'],$_values)) { - unset($page['filtered_users'][$_key]); - } + if (in_array($filter_user['id'], $collection)) + { + unset($page['filtered_users'][$filter_key]); + } } } else