code simplification
git-svn-id: http://piwigo.org/svn/branches/branch-1_5@997 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
parent
cb6b60d655
commit
7ed07f360c
1 changed files with 5 additions and 5 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue