diff options
author | vlakoff <vlakoff@gmail.com> | 2013-01-14 01:30:09 +0100 |
---|---|---|
committer | vlakoff <vlakoff@gmail.com> | 2013-01-14 01:30:09 +0100 |
commit | 1228fe27bc1f22838cd80c5fe33c37274faf0e24 (patch) | |
tree | 897f37e872fde0863b36a70effc9441ac0dfb529 /system/libraries/Xmlrpc.php | |
parent | 5a519db2c4884a3972dd33e09d0b3a314aa222e2 (diff) |
Replace is_null() with === / !== NULL
Exact same behavior, but faster. I also think it's more readable.
Diffstat (limited to 'system/libraries/Xmlrpc.php')
-rw-r--r-- | system/libraries/Xmlrpc.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/system/libraries/Xmlrpc.php b/system/libraries/Xmlrpc.php index c3c7690f0..9e60791ae 100644 --- a/system/libraries/Xmlrpc.php +++ b/system/libraries/Xmlrpc.php @@ -368,7 +368,7 @@ class CI_Xmlrpc { */ public function timeout($seconds = 5) { - if ( ! is_null($this->client) && is_int($seconds)) + if ($this->client !== NULL && is_int($seconds)) { $this->client->timeout = $seconds; } |