LSsearch : Fixed bug on no attributes specifies in config for LSsearch
authorBenjamin Renard <brenard@easter-eggs.com>
Thu, 11 Jul 2013 10:35:00 +0000 (12:35 +0200)
committerBenjamin Renard <brenard@easter-eggs.com>
Thu, 11 Jul 2013 10:35:00 +0000 (12:35 +0200)
public_html/includes/class/class.LSsearch.php

index c2ca82f..80081a1 100644 (file)
@@ -576,8 +576,8 @@ class LSsearch {
     if (self :: isValidPattern($pattern)) {
       $attrsConfig=LSconfig::get("LSobjects.".$this -> LSobject.".LSsearch.attrs");
       $attrsList=array();
-      if (!is_array($attrsList)) {
-        foreach(LSconfig::get("LSobjects.".$this -> LSobject.".attrs") as $attr) {
+      if (!is_array($attrsConfig)) {
+        foreach(LSconfig::get("LSobjects.".$this -> LSobject.".attrs") as $attr => $config) {
           $attrsList[$attr]=array();
         }
       }