LSsearch -> saveParamsInSession() : Fixed Notice PHP
authorBenjamin Renard <brenard@easter-eggs.com>
Tue, 9 Nov 2010 16:36:22 +0000 (17:36 +0100)
committerBenjamin Renard <brenard@easter-eggs.com>
Tue, 9 Nov 2010 16:36:22 +0000 (17:36 +0100)
public_html/includes/class/class.LSsearch.php

index 4fc4763..47d4ada 100644 (file)
@@ -176,7 +176,7 @@ class LSsearch {
     }
     
     foreach ($params as $param => $value) {
-      if ($_SESSION['LSsession']['LSsearch'][$this -> LSobject]['params'][$this -> context][$param]!=$value) {
+      if ( !isset($_SESSION['LSsession']['LSsearch'][$this -> LSobject]['params'][$this -> context][$param]) || $_SESSION['LSsession']['LSsearch'][$this -> LSobject]['params'][$this -> context][$param]!=$value) {
         LSdebug("S: $param => $value");
         $_SESSION['LSsession']['LSsearch'][$this -> LSobject]['params'][$this -> context][$param]=$value;
       }