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/Ftp.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/Ftp.php')
-rw-r--r-- | system/libraries/Ftp.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/system/libraries/Ftp.php b/system/libraries/Ftp.php index b8729a9c7..dc6bbd226 100644 --- a/system/libraries/Ftp.php +++ b/system/libraries/Ftp.php @@ -266,7 +266,7 @@ class CI_FTP { } // Set file permissions if needed - if ( ! is_null($permissions)) + if ($permissions !== NULL) { $this->chmod($path, (int) $permissions); } @@ -320,7 +320,7 @@ class CI_FTP { } // Set file permissions if needed - if ( ! is_null($permissions)) + if ($permissions !== NULL) { $this->chmod($rempath, (int) $permissions); } |