From b4dc760d787e34d1ec0e5ebb5f84111134a81808 Mon Sep 17 00:00:00 2001 From: Thomas Bruederli Date: Wed, 23 May 2012 10:46:25 +0200 Subject: [PATCH] Ensure title property is present as a string --- plugins/calendar/calendar.php | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/calendar/calendar.php b/plugins/calendar/calendar.php index 83993acb..3ee3d7b4 100644 --- a/plugins/calendar/calendar.php +++ b/plugins/calendar/calendar.php @@ -1149,6 +1149,7 @@ class calendar extends rcube_plugin return array( 'start' => gmdate('c', $this->fromGMT($event['start'])), // client treats date strings as they were in users's timezone 'end' => gmdate('c', $this->fromGMT($event['end'])), // so shift timestamps to users's timezone and render a date string + 'title' => strval($event['title']), 'description' => strval($event['description']), 'location' => strval($event['location']), 'className' => ($addcss ? 'fc-event-cal-'.asciiwords($event['calendar'], true).' ' : '') . 'fc-event-cat-' . asciiwords(strtolower($event['categories']), true),