commit | 382b51383c84fbb7f861fcd87b0b71b35c9f2869 | [log] [tgz] |
---|---|---|
author | Andrey Andreev <narf@devilix.net> | Wed Feb 26 18:41:59 2014 +0200 |
committer | Andrey Andreev <narf@devilix.net> | Wed Feb 26 18:41:59 2014 +0200 |
tree | 9aa8bf35189e3a7f4a8a6923bafba758d15aa90b | |
parent | ea41c8aa1951216b6a9ccc99832d69d2b41c5ead [diff] [blame] |
Don't use error suppression on is_dir(), file_exists()
diff --git a/system/libraries/Upload.php b/system/libraries/Upload.php index 62cfb28..75fc062 100644 --- a/system/libraries/Upload.php +++ b/system/libraries/Upload.php
@@ -972,7 +972,7 @@ $this->upload_path = str_replace('\\', '/', realpath($this->upload_path)); } - if ( ! @is_dir($this->upload_path)) + if ( ! is_dir($this->upload_path)) { $this->set_error('upload_no_filepath'); return FALSE;