From f7383f54d1a5a22aac87d67def6e7a1d0c30a689 Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Thu, 11 Dec 2014 16:38:45 +0000 Subject: [PATCH] Set the bodydescription to empty if it is not visible --- calendar/inc/class.calendar_uiviews.inc.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/calendar/inc/class.calendar_uiviews.inc.php b/calendar/inc/class.calendar_uiviews.inc.php index 05986b52e7..e463aa2bf2 100644 --- a/calendar/inc/class.calendar_uiviews.inc.php +++ b/calendar/inc/class.calendar_uiviews.inc.php @@ -1826,6 +1826,11 @@ class calendar_uiviews extends calendar_ui { $tpl->set_var('bodydescription', !$is_private ? nl2br(html::htmlspecialchars($event['description'])) : ''); } + // set the bodydescription to empty if it is not visible + else + { + $tpl->set_var('bodydescription', ''); + } $tooltip = $tpl->fp('tooltip','event_tooltip'); $html = $tpl->fp('out',$block);