commit | 1228fe27bc1f22838cd80c5fe33c37274faf0e24 | [log] [tgz] |
---|---|---|
author | vlakoff <vlakoff@gmail.com> | Mon Jan 14 01:30:09 2013 +0100 |
committer | vlakoff <vlakoff@gmail.com> | Mon Jan 14 01:30:09 2013 +0100 |
tree | 897f37e872fde0863b36a70effc9441ac0dfb529 | |
parent | 5a519db2c4884a3972dd33e09d0b3a314aa222e2 [diff] [blame] |
Replace is_null() with === / !== NULL Exact same behavior, but faster. I also think it's more readable.
diff --git a/system/database/DB_result.php b/system/database/DB_result.php index dfd8081..a044fd5 100644 --- a/system/database/DB_result.php +++ b/system/database/DB_result.php
@@ -354,7 +354,7 @@ return; } - if ($key !== '' && ! is_null($value)) + if ($key !== '' && $value !== NULL) { $this->row_data[$key] = $value; }