quiten warning, if event has no alarms

This commit is contained in:
Ralf Becker 2015-07-16 12:51:13 +00:00
parent 745ef42e04
commit 97f92355fb

View File

@ -1069,7 +1069,7 @@ class calendar_uiforms extends calendar_ui
unset($event[$name]);
}
// add all alarms as new alarms to execption
$event['alarm'] = array_values($event['alarm']);
$event['alarm'] = array_values((array)$event['alarm']);
foreach($event['alarm'] as &$alarm)
{
unset($alarm['uid'], $alarm['id'], $alarm['time']);