summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGeorg Ehrke <dev@georgswebsite.de>2012-06-21 15:19:49 +0200
committerGeorg Ehrke <dev@georgswebsite.de>2012-06-21 15:20:15 +0200
commitf5740a6f925ddcd78a563ab38db88f05d6a77317 (patch)
treec506fb0e581a9945555610b01bd8c064186345ac
parente95055b2bdcd70568c4b4e21424800cab47a582b (diff)
downloadnextcloud-server-f5740a6f925ddcd78a563ab38db88f05d6a77317.tar.gz
nextcloud-server-f5740a6f925ddcd78a563ab38db88f05d6a77317.zip
fix a PHP Notice
-rw-r--r--apps/calendar/lib/app.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/calendar/lib/app.php b/apps/calendar/lib/app.php
index 167382a5e7d..8e13b13b8a3 100644
--- a/apps/calendar/lib/app.php
+++ b/apps/calendar/lib/app.php
@@ -338,6 +338,9 @@ class OC_Calendar_App{
$singleevents = OC_Calendar_Share::allSharedwithuser(OCP\USER::getUser(), OC_Calendar_Share::EVENT, 1, ($_GET['calendar_id'] == 'shared_rw')?'rw':'r');
foreach($singleevents as $singleevent){
$event = OC_Calendar_Object::find($singleevent['eventid']);
+ if(!array_key_exists('summary', $event)){
+ $event['summary'] = self::$l10n->t('unnamed');
+ }
$event['summary'] .= ' (' . self::$l10n->t('by') . ' ' . OC_Calendar_Object::getowner($event['id']) . ')';
$events[] = $event;
}