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/libraries/Table.php b/system/libraries/Table.php index 8656990..b77fcf1 100644 --- a/system/libraries/Table.php +++ b/system/libraries/Table.php
@@ -291,7 +291,7 @@ { // The table data can optionally be passed to this function // either as a database result object or an array - if ( ! is_null($table_data)) + if ($table_data !== NULL) { if (is_object($table_data)) {