fixed problem when deleting users
This commit is contained in:
parent
fb6202551c
commit
bfb4f24c93
|
@ -3,6 +3,7 @@
|
||||||
-> Kolab: fixed problem with message about missing password
|
-> Kolab: fixed problem with message about missing password
|
||||||
-> Unix groups: fixed auto GID
|
-> Unix groups: fixed auto GID
|
||||||
-> Shadow: account expiration date was incorrect in some time zones
|
-> 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
|
24.05.2006 1.0.2
|
||||||
|
|
|
@ -414,6 +414,15 @@ class lamList {
|
||||||
elseif (isset($_POST['del'])){
|
elseif (isset($_POST['del'])){
|
||||||
// search for checkboxes
|
// search for checkboxes
|
||||||
$accounts = array_keys($_POST, "on");
|
$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();
|
$_SESSION['delete_dn'] = array();
|
||||||
for ($i = 0; $i < sizeof($accounts); $i++) {
|
for ($i = 0; $i < sizeof($accounts); $i++) {
|
||||||
$_SESSION['delete_dn'][] = $this->entries[$accounts[$i]]['dn'];
|
$_SESSION['delete_dn'][] = $this->entries[$accounts[$i]]['dn'];
|
||||||
|
|
Loading…
Reference in New Issue