Update storage.php

This commit is contained in:
Namhyeon Go 2018-05-27 01:48:05 +09:00 committed by GitHub
parent ab38cea509
commit f097642beb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -142,8 +142,8 @@ if(!function_exists("write_storage_file")) {
if($fhandle = fopen($upload_filename, "w")) {
if(fwrite($fhandle, $data)) {
$result = $upload_filename;
if(array_key_empty("chmod", $options)) {
@chmod($result);
if(!array_key_empty("chmod", $options)) {
@chmod($result, $options['chmod']);
}
}
fclose($fhandle);