eliminated multiple <font>&nbsp;</font> when showing event list in home

This commit is contained in:
alpeb 2004-05-14 15:38:15 +00:00
parent c69ae06549
commit 17811d977d

View File

@ -3560,9 +3560,17 @@
}
elseif (!isset($rows[$slot]))
{
$p->set_var('event','&nbsp;');
$row_to_print = $this->nm_on_off();
$p->parse('event','day_event'.$row_to_print);
if((int)($GLOBALS['phpgw_info']['user']['preferences']['calendar']['mainscreen_showevents'])==2 &&
$GLOBALS['phpgw_info']['flags']['currentapp'] == 'home')
{
$p->set_var('event', '');
}
else
{
$p->set_var('event','&nbsp;');
$row_to_print = $this->nm_on_off();
$p->parse('event','day_event'.$row_to_print);
}
}
else
{