Cast preset value to string in order to really mark the according option as selected (#863)

This commit is contained in:
Thomas Bruederli 2012-06-27 22:22:26 +02:00
parent 1c9e7d2698
commit c89d6f28ac

View file

@ -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'])));