diff --git a/etemplate/inc/class.nextmatch_widget.inc.php b/etemplate/inc/class.nextmatch_widget.inc.php index 24cb270b3f..9aa773f668 100644 --- a/etemplate/inc/class.nextmatch_widget.inc.php +++ b/etemplate/inc/class.nextmatch_widget.inc.php @@ -118,12 +118,12 @@ $max = $GLOBALS['phpgw_info']['user']['preferences']['common']['maxmatchs']; $loop = False; - $is_array_value = is_array($value); $value['start'] = $old_value['start']; // need to be set, to be reported back - if ($is_array_value && ($value['start_search'] || $value['cat_id'] != $old_value['cat_id'] || - $old_value['filter'] != '' && $value['filter'] != $old_value['filter'] || - $old_value['filter2'] != '' && $value['filter2'] != $old_value['filter2'])) + if ($value['start_search'] || + isset($value['cat_id']) && $value['cat_id'] != $old_value['cat_id'] || + $old_value['filter'] != '' && isset($value['filter']) && $value['filter'] != $old_value['filter'] || + $old_value['filter2'] != '' && isset($value['filter2']) && $value['filter2'] != $old_value['filter2']) { //echo "

search='$old_value[search]'->'$value[search]', filter='$old_value[filter]'->'$value[filter]', filter2='$old_value[filter2]'->'$value[filter2]'
"; //echo "new filter --> loop

";