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

index a2ca0c6..3c39109 100644 (file)
@@ -150,7 +150,7 @@ class LSsearch {
    */
   private function loadParamsFromSession() {
     LSdebug('LSsearch : load context params session '.$this -> context);
-    if (is_array($_SESSION['LSsession']['LSsearch'][$this -> LSobject]['params'][$this -> context])) {
+    if (isset($_SESSION['LSsession']['LSsearch'][$this -> LSobject]['params'][$this -> context]) && is_array($_SESSION['LSsession']['LSsearch'][$this -> LSobject]['params'][$this -> context])) {
       $params = $_SESSION['LSsession']['LSsearch'][$this -> LSobject]['params'][$this -> context];
       
       if ($params['filter']) {