silence php warning on copy event, when no alarm ios set

This commit is contained in:
Klaus Leithoff 2013-06-21 09:58:55 +00:00
parent 3087b84d28
commit 55d9f86b22

View File

@ -506,11 +506,14 @@ class calendar_uiforms extends calendar_ui
}
// Copy alarms
if (is_array($event['alarm']))
{
foreach($event['alarm'] as $n => &$alarm)
{
unset($alarm['id']);
unset($alarm['cal_id']);
}
}
// Get links to be copied
// With no ID, $content['link_to']['to_id'] is used