diff --git a/phpgwapi/inc/class.nextmatchs.inc.php b/phpgwapi/inc/class.nextmatchs.inc.php index 070458b0e9..2388fff065 100644 --- a/phpgwapi/inc/class.nextmatchs.inc.php +++ b/phpgwapi/inc/class.nextmatchs.inc.php @@ -105,7 +105,14 @@ $tpl->set_var(search,$this->search($search_obj)); } - $tpl->set_var('filter',$this->filter($filter_obj)); + if ($filter_obj) + { + $tpl->set_var('filter',$this->filter($filter_obj)); + } + else + { + $tpl->set_var('filter',''); + } $tpl->set_var('right',$this->right($sn,$start,$total,$extra)); return $tpl->fp('out','nextmatchs');