From 288c5e7581509ed5ec8fdb622cf84544439c46b2 Mon Sep 17 00:00:00 2001 From: Georg Ehrke Date: Thu, 21 Jun 2012 15:19:49 +0200 Subject: [PATCH] fix a PHP Notice --- apps/calendar/lib/app.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apps/calendar/lib/app.php b/apps/calendar/lib/app.php index e0035c4df8d..b575f5b9fde 100644 --- a/apps/calendar/lib/app.php +++ b/apps/calendar/lib/app.php @@ -343,6 +343,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; } -- 2.39.5