From dea61776dbb33f4414d5c5f17bbbc6a9efaa589c Mon Sep 17 00:00:00 2001 From: Andrey Andreev Date: Mon, 24 Feb 2014 16:36:25 +0200 Subject: [ci skip] A tiny improvement in CI_Email --- system/libraries/Email.php | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/system/libraries/Email.php b/system/libraries/Email.php index 3c3c49e78..fac8a49d5 100644 --- a/system/libraries/Email.php +++ b/system/libraries/Email.php @@ -376,7 +376,13 @@ class CI_Email { * * @var string[] */ - protected $_priorities = array('1 (Highest)', '2 (High)', '3 (Normal)', '4 (Low)', '5 (Lowest)'); + protected $_priorities = array( + 1 => '1 (Highest)', + 2 => '2 (High)', + 3 => '3 (Normal)', + 4 => '4 (Low)', + 5 => '5 (Lowest)' + ); // -------------------------------------------------------------------- @@ -1241,7 +1247,7 @@ class CI_Email { { $this->set_header('X-Sender', $this->clean_email($this->_headers['From'])); $this->set_header('X-Mailer', $this->useragent); - $this->set_header('X-Priority', $this->_priorities[$this->priority - 1]); + $this->set_header('X-Priority', $this->_priorities[$this->priority]); $this->set_header('Message-ID', $this->_get_message_id()); $this->set_header('Mime-Version', '1.0'); } -- cgit v1.2.3-24-g4f1b