summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorThomas Bruederli <bruederli@kolabsys.com>2013-07-25 08:24:05 (GMT)
committerThomas Bruederli <bruederli@kolabsys.com>2013-07-25 08:30:55 (GMT)
commit780457628b1dd6026b4d93de4603ae320cae7cc0 (patch)
tree0a6f7ffc6aa73393da0c5525804b19a64cfd7f15 /plugins
parent6e976234bdb63d86b30ce9be0097c6628f712443 (diff)
downloadroundcubemail-plugins-kolab-780457628b1dd6026b4d93de4603ae320cae7cc0.tar.gz
Fix calendar settings form (wrong selection for calendar_timeslots)
Diffstat (limited to 'plugins')
-rw-r--r--plugins/calendar/calendar.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/calendar/calendar.php b/plugins/calendar/calendar.php
index bda393b..6e9324b 100644
--- a/plugins/calendar/calendar.php
+++ b/plugins/calendar/calendar.php
@@ -331,7 +331,7 @@ class calendar extends rcube_plugin
$select->add($choices);
$p['blocks']['view']['options']['timeslots'] = array(
'title' => html::label($field_id, Q($this->gettext('timeslots'))),
- 'content' => $select->show($this->rc->config->get('calendar_timeslots', $this->defaults['calendar_timeslots'])),
+ 'content' => $select->show(strval($this->rc->config->get('calendar_timeslots', $this->defaults['calendar_timeslots']))),
);
$field_id = 'rcmfd_firstday';
@@ -489,8 +489,8 @@ class calendar extends rcube_plugin
$p['prefs'] = array(
'calendar_default_view' => get_input_value('_default_view', RCUBE_INPUT_POST),
- 'calendar_timeslots' => get_input_value('_timeslots', RCUBE_INPUT_POST),
- 'calendar_first_day' => get_input_value('_first_day', RCUBE_INPUT_POST),
+ 'calendar_timeslots' => intval(get_input_value('_timeslots', RCUBE_INPUT_POST)),
+ 'calendar_first_day' => intval(get_input_value('_first_day', RCUBE_INPUT_POST)),
'calendar_first_hour' => intval(get_input_value('_first_hour', RCUBE_INPUT_POST)),
'calendar_work_start' => intval(get_input_value('_work_start', RCUBE_INPUT_POST)),
'calendar_work_end' => intval(get_input_value('_work_end', RCUBE_INPUT_POST)),