summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Bruederli <thomas@roundcube.net>2012-06-27 20:22:26 (GMT)
committerThomas Bruederli <thomas@roundcube.net>2012-06-27 20:33:21 (GMT)
commit6879f2841c49e8559bafe5df533c55fbb8d174f7 (patch)
treef9d61ebeeb1372d7edca20417c67d61f192d0657
parent41ad79297e9b3e861b4a42336799ea9bfa1273f3 (diff)
downloadroundcubemail-plugins-kolab-6879f2841c49e8559bafe5df533c55fbb8d174f7.tar.gz
Cast preset value to string in order to really mark the according option as selected (#863)
-rw-r--r--plugins/calendar/calendar.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/calendar/calendar.php b/plugins/calendar/calendar.php
index 912885a..a830fcf 100644
--- a/plugins/calendar/calendar.php
+++ b/plugins/calendar/calendar.php
@@ -332,7 +332,7 @@ class calendar extends rcube_plugin
$select->add(rcube_label('saturday'), '6');
$p['blocks']['view']['options']['first_day'] = array(
'title' => html::label($field_id, Q($this->gettext('first_day'))),
- 'content' => $select->show($this->rc->config->get('calendar_first_day', $this->defaults['calendar_first_day'])),
+ 'content' => $select->show(strval($this->rc->config->get('calendar_first_day', $this->defaults['calendar_first_day']))),
);
$time_format = $this->rc->config->get('time_format', self::to_php_date_format($this->rc->config->get('calendar_time_format', $this->defaults['calendar_time_format'])));