diff --git a/phpgwapi/inc/class.nextmatchs.inc.php b/phpgwapi/inc/class.nextmatchs.inc.php index 33ecf4d04f..80d847c70f 100644 --- a/phpgwapi/inc/class.nextmatchs.inc.php +++ b/phpgwapi/inc/class.nextmatchs.inc.php @@ -762,7 +762,11 @@ */ function template_alternate_row_color(&$tpl) { - $this->template->set_var('tr_color',$this->alternate_row_color()); + $this->template->set_var('tr_color',$color = $this->alternate_row_color()); + if (is_object($tpl)) + { + $tpl->set_var('tr_color',$color); // set the supplied template too + } } /*!