fixed multidelete
This commit is contained in:
parent
72019e6ea2
commit
443bb0474e
|
@ -509,21 +509,10 @@ 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 option boxes
|
|
||||||
$change = false;
|
|
||||||
for ($i = 0; $i < sizeof($accounts); $i++) {
|
|
||||||
if (!is_numeric($accounts[$i])) {
|
|
||||||
unset($accounts[$i]);
|
|
||||||
$change = true;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if ($change) {
|
|
||||||
$accounts = array_values($accounts);
|
|
||||||
}
|
|
||||||
// build DN list
|
// 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'][] = base64_decode($accounts[$i]);
|
||||||
}
|
}
|
||||||
if (sizeof($accounts) > 0) {
|
if (sizeof($accounts) > 0) {
|
||||||
metaRefresh("../delete.php?type=" . $this->type);
|
metaRefresh("../delete.php?type=" . $this->type);
|
||||||
|
|
Loading…
Reference in New Issue