From 7ed07f360cd0c9e67cff275977d149a38618bb99 Mon Sep 17 00:00:00 2001 From: nikrou Date: Sun, 1 Jan 2006 17:02:18 +0000 Subject: code simplification git-svn-id: http://piwigo.org/svn/branches/branch-1_5@997 68402e56-0260-453c-a942-63ccdbb3a9ee --- admin/user_list.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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 -- cgit v1.2.3