diff options
author | Andrey Andreev <narf@bofh.bg> | 2013-03-04 13:40:18 +0100 |
---|---|---|
committer | Andrey Andreev <narf@bofh.bg> | 2013-03-04 13:40:18 +0100 |
commit | fa01ae4b3a2ed51a93590527c04295eb8cba4e40 (patch) | |
tree | 4e825be34867a1a8d9fa32a6c1799e0435b5df67 /system | |
parent | 5780d8b2078126f8eb5738658fceadd38c66fe5b (diff) |
[ci skip] Fix #2289
Diffstat (limited to 'system')
-rw-r--r-- | system/libraries/Email.php | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/system/libraries/Email.php b/system/libraries/Email.php index daa38484b..756a38a10 100644 --- a/system/libraries/Email.php +++ b/system/libraries/Email.php @@ -2017,12 +2017,11 @@ class CI_Email { $reply = $this->_get_smtp_data(); - if (strpos($reply, '503') !== 0) // Already authenticated + if (strpos($reply, '503') === 0) // Already authenticated { return TRUE; } - - if (strpos($reply, '334') !== 0) + elseif (strpos($reply, '334') !== 0) { $this->_set_error_message('lang:email_failed_smtp_login', $reply); return FALSE; |