summaryrefslogtreecommitdiffstats
path: root/system/libraries/Email.php
diff options
context:
space:
mode:
authorvlakoff <vlakoff@gmail.com>2013-01-14 01:30:09 +0100
committervlakoff <vlakoff@gmail.com>2013-01-14 01:30:09 +0100
commit1228fe27bc1f22838cd80c5fe33c37274faf0e24 (patch)
tree897f37e872fde0863b36a70effc9441ac0dfb529 /system/libraries/Email.php
parent5a519db2c4884a3972dd33e09d0b3a314aa222e2 (diff)
Replace is_null() with === / !== NULL
Exact same behavior, but faster. I also think it's more readable.
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 1834be239..3a386456d 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 = is_null($this->_attachments[$i]['name'][1])
+ $basename = $this->_attachments[$i]['name'][1] === NULL
? basename($filename) : $this->_attachments[$i]['name'][1];
$ctype = $this->_attachments[$i]['type'];
$file_content = '';