From c89d6f28ac12cc2a1a69b2a0fe72bd1870931d51 Mon Sep 17 00:00:00 2001 From: Thomas Bruederli Date: Wed, 27 Jun 2012 22:22:26 +0200 Subject: [PATCH] Cast preset value to string in order to really mark the according option as selected (#863) --- plugins/calendar/calendar.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/calendar/calendar.php b/plugins/calendar/calendar.php index 35df4684..ebe9b2f4 100644 --- a/plugins/calendar/calendar.php +++ b/plugins/calendar/calendar.php @@ -352,7 +352,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'])));