diff options
author | Alex Bilbie <alex@alexbilbie.com> | 2012-07-30 10:50:37 +0200 |
---|---|---|
committer | Alex Bilbie <alex@alexbilbie.com> | 2012-07-30 10:50:37 +0200 |
commit | a87aab39488367c18b9e60d2020665b17b35f4b1 (patch) | |
tree | a7f218deeb6e5d27dfdc93970b44fc7d85e5442d | |
parent | d7bc8d04e5c13bbafe3bf10ca2634c1f8481ed53 (diff) |
Only clear if request was successful
-rw-r--r-- | system/libraries/Email.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/system/libraries/Email.php b/system/libraries/Email.php index 8239862a9..196a4b36c 100644 --- a/system/libraries/Email.php +++ b/system/libraries/Email.php @@ -1259,7 +1259,7 @@ class CI_Email { { $result = $this->batch_bcc_send(); - if ($auto_clear) + if ($result && $auto_clear) { $this->clear(); } @@ -1270,11 +1270,11 @@ class CI_Email { $this->_build_message(); $result = $this->_spool_email(); - if ($auto_clear) + if ($result && $auto_clear) { $this->clear(); } - + return $result; } |