summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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;