summaryrefslogtreecommitdiffstats
path: root/system/libraries/Email.php
diff options
context:
space:
mode:
authortrit <tritrei@gmail.com>2011-11-23 21:51:08 +0100
committertrit <tritrei@gmail.com>2011-11-23 21:51:08 +0100
commitb2b510dd441d6fc450c046a2fcb0b3742d6a7e04 (patch)
tree537cedef46db346cb908742b69c3668e2f8cb1f8 /system/libraries/Email.php
parent10eb14d37a4399f7ed4dfa212feef07e2041f889 (diff)
More style tweaks
Diffstat (limited to 'system/libraries/Email.php')
-rw-r--r--system/libraries/Email.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/system/libraries/Email.php b/system/libraries/Email.php
index a24ce7440..3c679ce48 100644
--- a/system/libraries/Email.php
+++ b/system/libraries/Email.php
@@ -421,7 +421,10 @@ class CI_Email {
public function attach($filename, $disposition = '', $newname = NULL)
{
if(empty($disposition))
+ {
$disposition = 'attachment';
+ }
+
$this->_attach_name[] = array($filename, $newname);
$this->_attach_type[] = $this->_mime_types(pathinfo($filename, PATHINFO_EXTENSION));
$this->_attach_disp[] = $disposition; // Can also be 'inline' Not sure if it matters