aboutsummaryrefslogtreecommitdiffstats
path: root/apps/calendar/ajax/events.php
diff options
context:
space:
mode:
authorGeorg Ehrke <dev@georgswebsite.de>2012-03-23 17:09:51 +0100
committerGeorg Ehrke <dev@georgswebsite.de>2012-03-23 17:09:51 +0100
commitac8362e34a89b0e513e1304cf0f111c52d27f9e5 (patch)
treefffe1b116a2726093c3f2f3ed16fc9ecdb06a79a /apps/calendar/ajax/events.php
parentb63b377c4d173b3a62b93360909857a1d6a62837 (diff)
downloadnextcloud-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-xapps/calendar/ajax/events.php2
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){