diff --git a/calendar/inc/class.calendar_uiforms.inc.php b/calendar/inc/class.calendar_uiforms.inc.php index 63e5e6bec9..e7c7cf519a 100644 --- a/calendar/inc/class.calendar_uiforms.inc.php +++ b/calendar/inc/class.calendar_uiforms.inc.php @@ -1286,8 +1286,8 @@ class calendar_uiforms extends calendar_ui $sel_options += array( 'new_alarm[options]' => $alarm_options + array(0 => lang('Custom')) ); - // set default preference value - $event['new_alarm']['options'] = $default_alarm; + // set default preference value. If there's no preference chooses 5 min + $event['new_alarm']['options'] = $default_alarm ? $default_alarm: 300; $etpl = new etemplate_new(); if (!$etpl->read($preserv['template']))