diff options
author | Georg Ehrke <dev@georgswebsite.de> | 2012-03-23 17:09:51 +0100 |
---|---|---|
committer | Georg Ehrke <dev@georgswebsite.de> | 2012-03-23 17:09:51 +0100 |
commit | ac8362e34a89b0e513e1304cf0f111c52d27f9e5 (patch) | |
tree | fffe1b116a2726093c3f2f3ed16fc9ecdb06a79a /apps/calendar/ajax/events.php | |
parent | b63b377c4d173b3a62b93360909857a1d6a62837 (diff) | |
download | nextcloud-server-ac8362e34a89b0e513e1304cf0f111c52d27f9e5.tar.gz nextcloud-server-ac8362e34a89b0e513e1304cf0f111c52d27f9e5.zip |
check if the title of an event is null - bugfix for oc-139
Diffstat (limited to 'apps/calendar/ajax/events.php')
-rwxr-xr-x | apps/calendar/ajax/events.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/calendar/ajax/events.php b/apps/calendar/ajax/events.php index 922df90b76b..cf768f51c6f 100755 --- a/apps/calendar/ajax/events.php +++ b/apps/calendar/ajax/events.php @@ -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){ |