Ensure title property is present as a string

This commit is contained in:
Thomas Bruederli 2012-05-23 10:46:25 +02:00
parent 9da61e6d4b
commit b4dc760d78

View file

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