mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-12-18 14:33:49 +01:00
LSsession / LSprofiles : fix bug resolving user's LSprofiles
This commit is contained in:
parent
50511900a4
commit
66fd566002
1 changed files with 11 additions and 1 deletions
|
@ -1492,7 +1492,17 @@ class LSsession {
|
|||
$LSsearch = new LSsearch($LSobject,'LSsession :: loadLSprofiles',$params,true);
|
||||
$LSsearch -> run(false);
|
||||
|
||||
self :: $LSprofiles[$profile] = $LSsearch -> listObjectsDn();
|
||||
$DNs = $LSsearch -> listObjectsDn();
|
||||
if (!is_array(self :: $LSprofiles[$profile])) {
|
||||
self :: $LSprofiles[$profile]=$DNs;
|
||||
}
|
||||
else {
|
||||
foreach($DNs as $dn) {
|
||||
if (!in_array($dn,self :: $LSprofiles[$profile])) {
|
||||
self :: $LSprofiles[$profile][] = $dn;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue