aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornikrou <nikrou@piwigo.org>2006-01-01 17:02:18 +0000
committernikrou <nikrou@piwigo.org>2006-01-01 17:02:18 +0000
commit7ed07f360cd0c9e67cff275977d149a38618bb99 (patch)
treea98eaae6c02a922c7508de800698750f1821a5be
parentcb6b60d6558f383080093427dfaf2abe227f0c8c (diff)
code simplification
git-svn-id: http://piwigo.org/svn/branches/branch-1_5@997 68402e56-0260-453c-a942-63ccdbb3a9ee
-rw-r--r--admin/user_list.php10
1 files 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