From d1606358ba51261150bc2f99bb9cb2b9117718e7 Mon Sep 17 00:00:00 2001
From: Derek Jones
Date: Wed, 1 Sep 2010 11:16:07 -0500
Subject: fixes issue #109 where cc and bcc recipients were not reset when
using the clear() method in the Email lib
---
system/libraries/Email.php | 2 ++
user_guide/changelog.html | 1 +
2 files changed, 3 insertions(+)
diff --git a/system/libraries/Email.php b/system/libraries/Email.php
index 09d1b8fb9..af48757bb 100644
--- a/system/libraries/Email.php
+++ b/system/libraries/Email.php
@@ -146,6 +146,8 @@ class CI_Email {
$this->_header_str = "";
$this->_replyto_flag = FALSE;
$this->_recipients = array();
+ $this->_cc_array = array();
+ $this->_bcc_array = array();
$this->_headers = array();
$this->_debug_msg = array();
diff --git a/user_guide/changelog.html b/user_guide/changelog.html
index c42bde01e..25633b631 100644
--- a/user_guide/changelog.html
+++ b/user_guide/changelog.html
@@ -182,6 +182,7 @@ Hg Tag:
Fixed a PHP Strict Standards Error in the index.php file.
Fixed a bug where getimagesize() was being needlessly checked on non-image files in is_allowed_type().
Fixed a bug in the Encryption library where an empty key was not triggering an error.
+ Fixed a bug in the Email library where CC and BCC recipients were not reset when using the clear() method (#109).
Version 1.7.2
--
cgit v1.2.3-24-g4f1b