LSsession :: loadLSprofiles() : Fixed notice PHP
authorBenjamin Renard <brenard@easter-eggs.com>
Tue, 16 Nov 2010 18:28:43 +0000 (19:28 +0100)
committerBenjamin Renard <brenard@easter-eggs.com>
Tue, 16 Nov 2010 18:28:43 +0000 (19:28 +0100)
public_html/includes/class/class.LSsession.php

index ee74eb6..170710c 100644 (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);
                     }