check if the title of an event is null - bugfix for oc-139

This commit is contained in:
Georg Ehrke 2012-03-23 17:09:51 +01:00
parent b63b377c4d
commit ac8362e34a
1 changed files with 1 additions and 1 deletions

View File

@ -12,7 +12,7 @@ require_once('when/When.php');
function create_return_event($event, $vevent){
$return_event = array();
$return_event['id'] = (int)$event['id'];
$return_event['title'] = htmlspecialchars($event['summary']);
$return_event['title'] = htmlspecialchars(($event['summary']!=NULL)?$event['summary']:$l->t('unnamed'));
$return_event['description'] = isset($vevent->DESCRIPTION)?htmlspecialchars($vevent->DESCRIPTION->value):'';
$last_modified = $vevent->__get('LAST-MODIFIED');
if ($last_modified){