Set the bodydescription to empty if it is not visible

This commit is contained in:
Hadi Nategh 2014-12-11 16:39:44 +00:00
parent 3b2d97877a
commit 70751405de

View File

@ -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);