Better fix: enforce types in wrapper class

This commit is contained in:
Thomas Bruederli 2011-06-14 17:27:19 -06:00
parent dfc86d6ffb
commit 6ea6dd386b
2 changed files with 4 additions and 4 deletions

View file

@ -603,8 +603,8 @@ class calendar extends rcube_plugin
$json[] = array(
'start' => date('c', $event['start']), // ISO 8601 date (added in PHP 5)
'end' => date('c', $event['end']), // ISO 8601 date (added in PHP 5)
'description' => $event['description'],
'location' => $event['location'],
'description' => strval($event['description']),
'location' => strval($event['location']),
'className' => ($addcss ? 'fc-event-cal-'.asciiwords($event['calendar'], true).' ' : '') . 'cat-' . asciiwords($event['categories'], true),
'allDay' => ($event['all_day'] == 1)?true:false,
) + $event;

View file

@ -322,8 +322,8 @@ class kolab_calendar
return array(
'id' => $rec['uid'],
'uid' => $rec['uid'],
'title' => strval($rec['summary']),
'location' => strval($rec['location']),
'title' => $rec['summary'],
'location' => $rec['location'],
'description' => $rec['body'],
'start' => $rec['start-date'],
'end' => $rec['end-date'],