quiten warning, if event has no alarms

This commit is contained in:
Ralf Becker 2015-07-16 12:50:47 +00:00
parent d2616b15c6
commit 9d7068f96e

View File

@ -1060,7 +1060,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']);