From e1c0177c50dc239ad10ffa7081ef7674cb2051ab Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Thu, 15 Aug 2013 10:38:45 +0000 Subject: [PATCH] fixed 2 warnings --- calendar/inc/class.calendar_uiforms.inc.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/calendar/inc/class.calendar_uiforms.inc.php b/calendar/inc/class.calendar_uiforms.inc.php index 24423b412e..51e8cc8216 100644 --- a/calendar/inc/class.calendar_uiforms.inc.php +++ b/calendar/inc/class.calendar_uiforms.inc.php @@ -606,6 +606,7 @@ class calendar_uiforms extends calendar_ui $event['recurrence'] = $content['edit_single']; unset($event['id']); // modifiy alarms for the exception, unsetting alarm-id to create new alarms + if (!is_array($event['alarm'])) $event['alarm'] = array(); foreach($event['alarm'] as $n => &$alarm) { unset($alarm['id']); @@ -788,7 +789,7 @@ class calendar_uiforms extends calendar_ui { if ($edit_series_confirmed) // series moved by splitting in two { - foreach ($old_alarms as $alarm) + foreach ((array)$old_alarms as $alarm) { // check if alarms still needed in old event, if not delete it $event_time = $alarm['time'] + $alarm['offset'];