diff options
author | Andrey Andreev <narf@devilix.net> | 2014-02-20 17:05:58 +0100 |
---|---|---|
committer | Andrey Andreev <narf@devilix.net> | 2014-02-20 17:05:58 +0100 |
commit | f62747451d1f040b36db7611255d7c1b3cdffcdf (patch) | |
tree | bdbf06d942fb0a19454d987de0d89f142709013c /system/libraries/Upload.php | |
parent | bb3edf12d0ca82c62f7b7d570108375ec4379749 (diff) |
Don't use error suppression on ini_get() either
Diffstat (limited to 'system/libraries/Upload.php')
-rw-r--r-- | system/libraries/Upload.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/system/libraries/Upload.php b/system/libraries/Upload.php index 983d832fd..4939b158c 100644 --- a/system/libraries/Upload.php +++ b/system/libraries/Upload.php @@ -1255,7 +1255,7 @@ class CI_Upload { } } - if ((bool) @ini_get('safe_mode') === FALSE && function_usable('shell_exec')) + if ( ! ini_get('safe_mode') && function_usable('shell_exec')) { $mime = @shell_exec($cmd); if (strlen($mime) > 0) |