LSsearch::setParams() : fixed attributes setting
authorBenjamin Renard <brenard@easter-eggs.com>
Tue, 19 Nov 2013 10:40:12 +0000 (11:40 +0100)
committerBenjamin Renard <brenard@easter-eggs.com>
Tue, 19 Nov 2013 10:40:12 +0000 (11:40 +0100)
public_html/includes/class/class.LSsearch.php

index 80081a1..398db9b 100644 (file)
@@ -435,7 +435,7 @@ class LSsearch {
       }
       elseif (is_array($params['attributes'])) {
         $this -> params['attributes']=array();
-        foreach ($this -> params['attributes'] as $attr) {
+        foreach ($params['attributes'] as $attr) {
           if (is_string($attr)) {
             if (LSconfig::get("LSobjects.".$this -> LSobject.".attrs.$attr")) {;
               $this -> params['attributes'][] = $attr;