summaryrefslogtreecommitdiffstats
path: root/system/libraries
diff options
context:
space:
mode:
Diffstat (limited to 'system/libraries')
-rw-r--r--system/libraries/Email.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/system/libraries/Email.php b/system/libraries/Email.php
index 89d0976ae..99a5ea385 100644
--- a/system/libraries/Email.php
+++ b/system/libraries/Email.php
@@ -1549,8 +1549,9 @@ class CI_Email {
$status = $status >> 8 & 0xFF;
}
- if ($status == 0)
+ if ($status != 0)
{
+ $this->_set_error_message('email_exit_status', $status);
$this->_set_error_message('email_no_socket');
return FALSE;
}