diff options
author | Thomas Bruederli <thomas@roundcube.net> | 2013-07-25 21:49:37 +0200 |
---|---|---|
committer | Thomas Bruederli <thomas@roundcube.net> | 2013-07-25 21:49:37 +0200 |
commit | 64b55c40843f85ac14ee54b1904307ee532c4a0d (patch) | |
tree | 95198e57a933bfb0c7a44f8ab13975bd6fa7b1c1 /program | |
parent | c6af21333d1d0daee614260022ed09d1dad3a7b1 (diff) |
Fix priority selector when open in new window (#1489257)
Diffstat (limited to 'program')
-rw-r--r-- | program/steps/mail/compose.inc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/program/steps/mail/compose.inc b/program/steps/mail/compose.inc index 9ffde8a57..8e29553d0 100644 --- a/program/steps/mail/compose.inc +++ b/program/steps/mail/compose.inc @@ -1450,17 +1450,17 @@ function rcmail_priority_selector($attrib) rcube_label('normal'), rcube_label('high'), rcube_label('highest')), - array(5, 4, 0, 2, 1)); + array('5', '4', '0', '2', '1')); if (isset($_POST['_priority'])) $sel = $_POST['_priority']; - else if (intval($MESSAGE->headers->priority) != 3) - $sel = intval($MESSAGE->headers->priority); + else if ($MESSAGE->headers && intval($MESSAGE->headers->priority) != 3) + $sel = $MESSAGE->headers->priority; else $sel = 0; $out = $form_start ? "$form_start\n" : ''; - $out .= $selector->show($sel); + $out .= $selector->show(strval($sel)); $out .= $form_end ? "\n$form_end" : ''; return $out; |