summaryrefslogtreecommitdiffstats
path: root/system/database/DB_driver.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/database/DB_driver.php
parent5a519db2c4884a3972dd33e09d0b3a314aa222e2 (diff)
Replace is_null() with === / !== NULL
Exact same behavior, but faster. I also think it's more readable.
Diffstat (limited to 'system/database/DB_driver.php')
-rw-r--r--system/database/DB_driver.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/system/database/DB_driver.php b/system/database/DB_driver.php
index 1e5e8c6f7..26791398a 100644
--- a/system/database/DB_driver.php
+++ b/system/database/DB_driver.php
@@ -993,7 +993,7 @@ abstract class CI_DB_driver {
{
return ($str === FALSE) ? 0 : 1;
}
- elseif (is_null($str))
+ elseif ($str === NULL)
{
return 'NULL';
}