fixed problem when deleting users

This commit is contained in:
Roland Gruber 2006-06-29 19:38:38 +00:00
parent fb6202551c
commit bfb4f24c93
2 changed files with 10 additions and 0 deletions

View File

@ -3,6 +3,7 @@
-> Kolab: fixed problem with message about missing password
-> Unix groups: fixed auto GID
-> Shadow: account expiration date was incorrect in some time zones
-> User list: fixed problems when deleting users and translated GIDs are activated (1503367)
24.05.2006 1.0.2

View File

@ -414,6 +414,15 @@ class lamList {
elseif (isset($_POST['del'])){
// search for checkboxes
$accounts = array_keys($_POST, "on");
// skip trans_primary box
for ($i = 0; $i < sizeof($accounts); $i++) {
if ($accounts[$i] === 'trans_primary') {
unset($accounts[$i]);
$accounts = array_values($accounts);
break;
}
}
// build DN list
$_SESSION['delete_dn'] = array();
for ($i = 0; $i < sizeof($accounts); $i++) {
$_SESSION['delete_dn'][] = $this->entries[$accounts[$i]]['dn'];