diff --git a/calendar/inc/class.uicalendar.inc.php b/calendar/inc/class.uicalendar.inc.php index 5cd18135d8..21b7630c95 100755 --- a/calendar/inc/class.uicalendar.inc.php +++ b/calendar/inc/class.uicalendar.inc.php @@ -3560,9 +3560,17 @@ } elseif (!isset($rows[$slot])) { - $p->set_var('event',' '); - $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',' '); + $row_to_print = $this->nm_on_off(); + $p->parse('event','day_event'.$row_to_print); + } } else {