diff options
author | Petr Heralecky <petr@heralecky.cz> | 2014-01-10 13:25:34 +0100 |
---|---|---|
committer | Petr Heralecky <petr@heralecky.cz> | 2014-01-10 13:25:34 +0100 |
commit | 9ad2fff4492e1e216aad0b03714ddfcb7a06d697 (patch) | |
tree | 623ff905fa213482b6aad6920db0358fcf8d5ecb /system | |
parent | 230fca38f3f7481686d9d9c2989ad7d0a1a4874f (diff) |
variable repair
Diffstat (limited to 'system')
-rw-r--r-- | system/libraries/Email.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/system/libraries/Email.php b/system/libraries/Email.php index 01dbfbe19..a41884f7d 100644 --- a/system/libraries/Email.php +++ b/system/libraries/Email.php @@ -747,7 +747,7 @@ class CI_Email { 'type' => $mime, 'content' => chunk_split(base64_encode($file_content)) ); - + return $this; } @@ -770,7 +770,7 @@ class CI_Email { for ($i = 0, $c = count($this->_attachments); $i < $c; $i++) { - if ($attach['name'][0] === $filename) + if ($this->_attachments[$i]['name'][0] === $filename) { $this->_attachments[$i]['cid'] = uniqid(basename($this->_attachments[$i]['name'][0]).'@'); return $this->_attachments[$i]['cid']; |