forked from extern/egroupware
quiten warning, if event has no alarms
This commit is contained in:
parent
d2616b15c6
commit
9d7068f96e
@ -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']);
|
||||
|
Loading…
Reference in New Issue
Block a user