check if the title of an event is null - bugfix for oc-139
This commit is contained in:
parent
b63b377c4d
commit
ac8362e34a
|
@ -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){
|
||||
|
|
Loading…
Reference in New Issue