aboutsummaryrefslogtreecommitdiffstats
path: root/include/event.php
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2024-01-25 10:13:10 +0000
committerMario <mario@mariovavti.com>2024-01-25 10:13:10 +0000
commitc0a7dfe2f6554fc66e753c456551dd580c479820 (patch)
tree2a5fe12284f8c2bfd44eb9e2af19fc9ef4e65cb4 /include/event.php
parentfe50d78a0f3d7655cd5eefb7cdae44779c52b2b1 (diff)
downloadvolse-hubzilla-c0a7dfe2f6554fc66e753c456551dd580c479820.tar.gz
volse-hubzilla-c0a7dfe2f6554fc66e753c456551dd580c479820.tar.bz2
volse-hubzilla-c0a7dfe2f6554fc66e753c456551dd580c479820.zip
refactor fetch_and_store_parents() and inroduce the fetchparents daemon
Diffstat (limited to 'include/event.php')
-rw-r--r--include/event.php5
1 files changed, 4 insertions, 1 deletions
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 )))
. '</span></div>' . "\r\n";
- $o .= '<div class="event-description">' . zidify_links(smilies(bbcode($ev['description']))) . '</div>' . "\r\n";
+ if (!empty($ev['description'])) {
+ $o .= '<div class="event-description">' . zidify_links(smilies(bbcode($ev['description']))) . '</div>' . "\r\n";
+ }
if(isset($ev['location']) && $ev['location'])
$o .= '<div class="event-location"><span class="event-label"> ' . t('Location:') . '</span>&nbsp;<span class="location">'
@@ -117,6 +119,7 @@ function format_event_obj($jobject) {
$dtdiff = $dtstart->diff($dtend_obj);
+ $oneday = false;
if($allday && ($dtdiff->days < 2))
$oneday = true;