diff --git a/htdocs/comm/action/index.php b/htdocs/comm/action/index.php
index 39c63002e49..1b6dc499e40 100644
--- a/htdocs/comm/action/index.php
+++ b/htdocs/comm/action/index.php
@@ -936,10 +936,10 @@ function show_day_events($db, $day, $month, $year, $monthshown, $style, &$eventa
}
// Show title
- if ($event->type_code == 'ICALEVENT') print $event->libelle;
+ if ($event->type_code == 'ICALEVENT') print dol_trunc($event->libelle,$maxnbofchar);
else print $event->getNomUrl(0,$maxnbofchar,'cal_event');
- if ($event->type_code == 'ICALEVENT') print '
('.$event->icalname.')';
+ if ($event->type_code == 'ICALEVENT') print '
('.dol_trunc($event->icalname,$maxnbofchar).')';
// If action related to company / contact
$linerelatedto='';$length=16;