fixed another problem with \"unset\" and PHP5
This commit is contained in:
parent
eadba74914
commit
057ccdd4c4
|
@ -1343,11 +1343,11 @@ class accountContainer {
|
||||||
$attr = ldap_get_attributes($_SESSION['ldap']->server(), $entry);
|
$attr = ldap_get_attributes($_SESSION['ldap']->server(), $entry);
|
||||||
$attrNames = array_keys($attr);
|
$attrNames = array_keys($attr);
|
||||||
// remove 'count' entries and numerical entries
|
// remove 'count' entries and numerical entries
|
||||||
for ($i = 0; $i < sizeof($attrNames); $i++) unset($attr[$attrNames[$i]]['count']);
|
|
||||||
unset($attr['count']);
|
|
||||||
for ($i = 0; $i < count($attr); $i++) {
|
for ($i = 0; $i < count($attr); $i++) {
|
||||||
if (isset($attr[$i])) unset($attr[$i]);
|
if (isset($attr[$i])) unset($attr[$i]);
|
||||||
}
|
}
|
||||||
|
for ($i = 0; $i < sizeof($attrNames); $i++) unset($attr[$attrNames[$i]]['count']);
|
||||||
|
unset($attr['count']);
|
||||||
// save original attributes
|
// save original attributes
|
||||||
$this->attributes_orig = $attr;
|
$this->attributes_orig = $attr;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue