summaryrefslogtreecommitdiffstats
path: root/system/libraries
diff options
context:
space:
mode:
authorvlakoff <vlakoff@gmail.com>2013-01-15 03:34:12 +0100
committervlakoff <vlakoff@gmail.com>2013-01-15 03:34:12 +0100
commit912f1bcbc3d4f9b09695ab784d6985efbc4c9235 (patch)
tree75375decf2d989b3832ff207683ab1a34a66770d /system/libraries
parent1228fe27bc1f22838cd80c5fe33c37274faf0e24 (diff)
A few adjustments to previous commit
Diffstat (limited to 'system/libraries')
-rw-r--r--system/libraries/Email.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/system/libraries/Email.php b/system/libraries/Email.php
index 3a386456d..997757b0a 100644
--- a/system/libraries/Email.php
+++ b/system/libraries/Email.php
@@ -1335,7 +1335,7 @@ class CI_Email {
for ($i = 0, $c = count($this->_attachments), $z = 0; $i < $c; $i++)
{
$filename = $this->_attachments[$i]['name'][0];
- $basename = $this->_attachments[$i]['name'][1] === NULL
+ $basename = ($this->_attachments[$i]['name'][1] === NULL)
? basename($filename) : $this->_attachments[$i]['name'][1];
$ctype = $this->_attachments[$i]['type'];
$file_content = '';