code simplification

git-svn-id: http://piwigo.org/svn/branches/branch-1_5@997 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
nikrou 2006-01-01 17:02:18 +00:00
parent cb6b60d655
commit 7ed07f360c

View file

@ -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