Skip to content

Commit

Permalink
Bugfix: warnings were issued in the Frontend, when no filter paramete…
Browse files Browse the repository at this point in the history
…rs were selected. Thanks to @pehbehbeh for pointing this out.
  • Loading branch information
discordier committed Jan 30, 2013
1 parent fa1a852 commit f59c115
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
Expand Up @@ -53,7 +53,7 @@ public function generate()


/**
* Generate the module
* Generate the content element
*/
protected function compile()
{
Expand All @@ -64,7 +64,7 @@ protected function compile()
// sort filters
$arrSort = deserialize($this->metamodel_fef_params);

foreach($arrSort as $intKeySort=>$strValSort)
foreach((array)$arrSort as $intKeySort=>$strValSort)
{
foreach($arrFilter['filter'] as $arrFilterDef)
{
Expand Down
Expand Up @@ -66,7 +66,7 @@ protected function compile()
// sort filters
$arrSort = deserialize($this->metamodel_fef_params);

foreach($arrSort as $intKeySort=>$strValSort)
foreach((array)$arrSort as $intKeySort=>$strValSort)
{
foreach($arrFilter['filter'] as $arrFilterDef)
{
Expand All @@ -87,6 +87,5 @@ protected function compile()
$this->Template->filters = $arrFilter['filterSorted'];
$this->Template->submit = $arrFilter['submit'];
}

}

0 comments on commit f59c115

Please sign in to comment.