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,11 +506,14 @@ class calendar_uiforms extends calendar_ui
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Copy alarms
|
// Copy alarms
|
||||||
|
if (is_array($event['alarm']))
|
||||||
|
{
|
||||||
foreach($event['alarm'] as $n => &$alarm)
|
foreach($event['alarm'] as $n => &$alarm)
|
||||||
{
|
{
|
||||||
unset($alarm['id']);
|
unset($alarm['id']);
|
||||||
unset($alarm['cal_id']);
|
unset($alarm['cal_id']);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Get links to be copied
|
// Get links to be copied
|
||||||
// With no ID, $content['link_to']['to_id'] is used
|
// With no ID, $content['link_to']['to_id'] is used
|
||||||
|
Loading…
Reference in New Issue
Block a user