From a3c57c48b3905819311b5b51269fcc40f0d50a17 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Mon, 12 Oct 2009 15:44:52 +0000 Subject: [PATCH] "fixed typo reported in bug #2302 - Error while imported iCal file (PHP Error)" --- calendar/inc/class.calendar_ical.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/calendar/inc/class.calendar_ical.inc.php b/calendar/inc/class.calendar_ical.inc.php index 74b7d3ac6d..64b6bcce44 100644 --- a/calendar/inc/class.calendar_ical.inc.php +++ b/calendar/inc/class.calendar_ical.inc.php @@ -550,7 +550,7 @@ class calendar_ical extends calendar_boupdate $attributes['PRIORITY'] = (int) $this->priority_egw2ical[$event['priority']]; break; - case 'TRANSP': + case 'TRANSP': if ($version == '1.0') { $attributes['TRANSP'] = ($event['non_blocking'] ? 1 : 0); } else { @@ -1457,7 +1457,7 @@ class calendar_ical extends calendar_boupdate return array($event); } - else if($count($events) == 0 || $cal_id > 0 || !is_null($etag) || $recur_date) + else if(count($events) == 0 || $cal_id > 0 || !is_null($etag) || $recur_date) { // no events to return // or not allowed N:1 relation with params just meant for a single event