Index: branches/5.2.x/core/units/helpers/search_helper.php =================================================================== diff -u -r16669 -r16692 --- branches/5.2.x/core/units/helpers/search_helper.php (.../search_helper.php) (revision 16669) +++ branches/5.2.x/core/units/helpers/search_helper.php (.../search_helper.php) (revision 16692) @@ -1,6 +1,6 @@ getPrefixSpecial(), $grid_name); if ($submit_filters) { foreach ($submit_filters as $field_name => $field_options) { - list ($filter_type, $field_value) = each($field_options); + $filter_type = key($field_options); + $field_value = $field_options[$filter_type]; $is_empty = strlen(is_array($field_value) ? implode('', $field_value) : $field_value) == 0; if ($is_empty) { if (isset($custom_filter[$field_name])) { @@ -466,7 +467,8 @@ $object = $event->getObject(); // don't recall it each time in getCustomFilterSearchClause $grid_info = $this->Application->getUnitOption($event->Prefix.'.'.$grid_name, 'Grids'); foreach ($custom_filter as $field_name => $field_options) { - list ($filter_type, $field_options) = each($field_options); + $filter_type = key($field_options); + $field_options = $field_options[$filter_type]; $field_options['grid_options'] = $grid_info['Fields'][$field_name]; $field_options = $this->getCustomFilterSearchClause($object, $field_name, $filter_type, $field_options); if ($field_options['value']) { @@ -515,7 +517,8 @@ $custom_filter = $custom_filters[$grid_name]; foreach ($custom_filter as $field_name => $field_options) { - list ($filter_type, $field_options) = each($field_options); + $filter_type = key($field_options); + $field_options = $field_options[$filter_type]; if (strpos($filter_type, 'range') === false) { continue;