summaryrefslogtreecommitdiffstats
path: root/system
diff options
context:
space:
mode:
authorAndrey Andreev <narf@bofh.bg>2013-03-04 13:40:18 +0100
committerAndrey Andreev <narf@bofh.bg>2013-03-04 13:40:18 +0100
commitfa01ae4b3a2ed51a93590527c04295eb8cba4e40 (patch)
tree4e825be34867a1a8d9fa32a6c1799e0435b5df67 /system
parent5780d8b2078126f8eb5738658fceadd38c66fe5b (diff)
[ci skip] Fix #2289
Diffstat (limited to 'system')
-rw-r--r--system/libraries/Email.php5
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;