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,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