forked from extern/egroupware
silence php warning on copy event, when no alarm ios set
This commit is contained in:
parent
3087b84d28
commit
55d9f86b22
@ -506,10 +506,13 @@ class calendar_uiforms extends calendar_ui
|
||||
}
|
||||
|
||||
// Copy alarms
|
||||
foreach($event['alarm'] as $n => &$alarm)
|
||||
if (is_array($event['alarm']))
|
||||
{
|
||||
unset($alarm['id']);
|
||||
unset($alarm['cal_id']);
|
||||
foreach($event['alarm'] as $n => &$alarm)
|
||||
{
|
||||
unset($alarm['id']);
|
||||
unset($alarm['cal_id']);
|
||||
}
|
||||
}
|
||||
|
||||
// Get links to be copied
|
||||
|
Loading…
Reference in New Issue
Block a user