summaryrefslogtreecommitdiffstats
path: root/system/libraries/Email.php
diff options
context:
space:
mode:
Diffstat (limited to 'system/libraries/Email.php')
-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 b898bae2a..6be294377 100644
--- a/system/libraries/Email.php
+++ b/system/libraries/Email.php
@@ -1156,7 +1156,7 @@ class CI_Email{
if( ! $basename)
{
- $basename = basename($filename);
+ $basename = basename($filepath);
}
$ctype = $this->_attach_type[$i];