When my view hasn't exposed filters in any moment the view get this error:

warning: Invalid argument supplied for foreach() in C:\AppServ\www\cartagenaesmicasa6.22\sites\all\modules\exposed_filter_data\exposed_filter_data.tpl.php on line 14.

This is the code from line 14 in exposed_filter_data.tpl.php:

<?php
      foreach ($exposed_filters as $filter => $value) {
        if ($value) {
          print "<div class='filter'><div class='name'>" . $filter . ":</div>";
          print "<div class='value'>" . $value . "</div></div>";
        }
      }
?>

Comments

shushu’s picture

Assigned: Unassigned » shushu

Sorry, there should be a "if ($exposed_filters)" before the "foreach".
Will be fixed ASAP.

shushu

dvasquez’s picture

Thanks shushu!

shushu’s picture

Version: 6.x-1.0 » 6.x-1.1
Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.