From 2789a8d3a7843d47abea853d8b09c9391988b8d1 Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Wed, 4 Jun 2014 07:42:54 +0000 Subject: [PATCH] Set calendar alarm time to 5 min, if there is no user preferences --- calendar/inc/class.calendar_uiforms.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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']))