LSsession :: loadLSprofiles() : Fixed notice PHP

This commit is contained in:
Benjamin Renard 2010-11-16 19:28:43 +01:00
parent b00b3825f1
commit c577b7a706

View file

@ -1518,7 +1518,7 @@ class LSsession {
if (is_array($rightsInfos)) {
foreach ($rightsInfos as $LSobject => $listInfos) {
if (self :: loadLSclass('LSsearch')) {
if ($listInfos['filter']) {
if (isset($listInfos['filter'])) {
$filter = self :: getLSuserObject() -> getFData($listInfos['filter']);
}
else {
@ -1526,11 +1526,11 @@ class LSsession {
}
$params = array (
'basedn' => $listInfos['basedn'],
'basedn' => (isset($listInfos['basedn'])?$listInfos['basedn']:null),
'filter' => $filter
);
if (is_array($listInfos['params'])) {
if (isset($listInfos['params']) && is_array($listInfos['params'])) {
$params = array_merge($listInfos['params'],$params);
}