If no alarms are set, it should be ok now.

This commit is contained in:
skeeter 2001-11-04 04:08:57 +00:00
parent 11ae5e79ec
commit c5314f991b

View File

@ -112,6 +112,8 @@
$this->template->set_var('hr_text','<hr>'); $this->template->set_var('hr_text','<hr>');
$this->template->parse('row','hr',True); $this->template->parse('row','hr',True);
if($this->event['alarm'])
{
@reset($this->event['alarm']); @reset($this->event['alarm']);
while(list($key,$alarm) = each($this->event['alarm'])) while(list($key,$alarm) = each($this->event['alarm']))
{ {
@ -124,6 +126,7 @@
); );
$this->output_template_array('row','list',$var); $this->output_template_array('row','list',$var);
} }
}
$this->template->set_var('hr_text','<hr>'); $this->template->set_var('hr_text','<hr>');
$this->template->parse('row','hr',True); $this->template->parse('row','hr',True);