LSsession / LSprofiles : fix bug resolving user's LSprofiles

This commit is contained in:
Benjamin Renard 2014-11-05 15:26:09 +01:00
parent 50511900a4
commit 66fd566002

View file

@ -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;
}
}
}
}
}
}