[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] [18605] typo and easier to read code
From: |
Dave Hall |
Subject: |
[Phpgroupware-cvs] [18605] typo and easier to read code |
Date: |
Sun, 08 Jun 2008 12:56:29 +0000 |
Revision: 18605
http://svn.sv.gnu.org/viewvc/?view=rev&root=phpgroupware&revision=18605
Author: skwashd
Date: 2008-06-08 12:56:28 +0000 (Sun, 08 Jun 2008)
Log Message:
-----------
typo and easier to read code
Modified Paths:
--------------
trunk/calendar/inc/class.uialarm.inc.php
Modified: trunk/calendar/inc/class.uialarm.inc.php
===================================================================
--- trunk/calendar/inc/class.uialarm.inc.php 2008-06-08 12:36:36 UTC (rev
18604)
+++ trunk/calendar/inc/class.uialarm.inc.php 2008-06-08 12:56:28 UTC (rev
18605)
@@ -194,15 +194,32 @@
}
$this->template->parse('rows','buttons',True);
}
- if
(isset($this->event['participants'][intval($GLOBALS['phpgw_info']['user']['person_id'])]))
+
+ if ( !isset($time['days']) )
{
+ $time['days'] = 0;
+ }
+
+ if ( !isset($time['hours']) )
+ {
+ $time['hours'] = 0;
+ }
+
+ if ( !isset($time['mins']) )
+ {
+ $time['mins'] = 0;
+ }
+
+
+ if ( isset($this->event['participants'][ (int)
$GLOBALS['phpgw_info']['user']['person_id']]) )
+ {
$time = phpgw::get_var('time', 'int', 'POST');
$this->template->set_var(Array(
'hidden_vars' =>
$this->html->input_hidden('cal_id',$this->bo->cal_id),
'input_text' => lang('Email
reminder'),
- 'input_days' =>
$this->html->select('time[days]', isset($time['days']) ? $time['days'] : 0),
range(0,31), True).' '.lang('days'),
- 'input_hours' =>
$this->html->select('time[hours]', isset($time['hours']) ? $time['hours'] :
0),range(0,24),True).' '.lang('hours'),
- 'input_minutes' =>
$this->html->select('time[mins]', isset($time['mins']) ? $time['mins'] : 0),
range(0,60),True).' '.lang('minutes').' '.lang('before the event'),
+ 'input_days' =>
$this->html->select('time[days]', $time['days'], range(0,31), true).'
'.lang('days'),
+ 'input_hours' =>
$this->html->select('time[hours]', $time['hours'], range(0,24), true).'
'.lang('hours'),
+ 'input_minutes' =>
$this->html->select('time[mins]', $time['mins'], range(0,60), true).'
'.lang('minutes').' '.lang('before the event'),
'input_owner' =>
$this->html->select('owner',$GLOBALS['phpgw_info']['user']['account_id'],$this->bo->participants($this->event,True),True),
'input_add' =>
$this->html->submit_button('add','Add Alarm')
));
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpgroupware-cvs] [18605] typo and easier to read code,
Dave Hall <=