diff --git a/calendar/inc/class.uicalendar.inc.php b/calendar/inc/class.uicalendar.inc.php index 46b9e79e06..d6a987fd10 100755 --- a/calendar/inc/class.uicalendar.inc.php +++ b/calendar/inc/class.uicalendar.inc.php @@ -1293,7 +1293,7 @@ 'print' => $print, 'lang_todos' => $todo_label, 'todos' => $this->bo->printer_friendly ? $todos : - "
\n$todos
\n" + "
\n$todos
\n" ); $p->set_var($var); @@ -1312,14 +1312,14 @@ )); $content = $todo_label = ''; - if (is_array($todos_from_hook)) + if (is_array($todos_from_hook) && count($todos_from_hook)) { + $todo_label = lang("open ToDo's:"); + foreach($todos_from_hook as $todos) { if (is_array($todos) && count($todos)) { - $todo_label = lang("open ToDo's:"); - if (!is_object($GLOBALS['phpgw']->html)) { $GLOBALS['phpgw']->html = CreateObject('calendar.html'); diff --git a/calendar/templates/default/day_cal.tpl b/calendar/templates/default/day_cal.tpl index b22b5abc5a..7103291c49 100755 --- a/calendar/templates/default/day_cal.tpl +++ b/calendar/templates/default/day_cal.tpl @@ -1,7 +1,7 @@
- +
{row}