LSsearch : Fixed bug on no attributes specifies in config for LSsearch

This commit is contained in:
Benjamin Renard 2013-07-11 12:35:00 +02:00
parent 186279bab4
commit fe57bf75b0

View 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();
}
}