From c0a7dfe2f6554fc66e753c456551dd580c479820 Mon Sep 17 00:00:00 2001 From: Mario Date: Thu, 25 Jan 2024 10:13:10 +0000 Subject: refactor fetch_and_store_parents() and inroduce the fetchparents daemon --- include/event.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'include/event.php') diff --git a/include/event.php b/include/event.php index 745469064..da504c2d7 100644 --- a/include/event.php +++ b/include/event.php @@ -58,7 +58,9 @@ function format_event_html($ev) { $ev['dtend'] , $bd_format ))) . '' . "\r\n"; - $o .= '
' . zidify_links(smilies(bbcode($ev['description']))) . '
' . "\r\n"; + if (!empty($ev['description'])) { + $o .= '
' . zidify_links(smilies(bbcode($ev['description']))) . '
' . "\r\n"; + } if(isset($ev['location']) && $ev['location']) $o .= '
' . t('Location:') . ' ' @@ -117,6 +119,7 @@ function format_event_obj($jobject) { $dtdiff = $dtstart->diff($dtend_obj); + $oneday = false; if($allday && ($dtdiff->days < 2)) $oneday = true; -- cgit v1.2.3