Update storage.php

This commit is contained in:
Namhyeon Go 2019-10-13 01:09:27 +09:00 committed by GitHub
parent 629ef90722
commit c655bb450e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -263,9 +263,9 @@ if(!check_function_exists("write_storage_file")) {
$result = false;
$filename = get_value_in_array("filename", $options, make_random_id(32));
if(!array_key_empty("extension", $options)) {
if(!array_key_empty("extension", $options)) {
$filename = sprintf("%s.%s", $filename, $options['extension']);
}
}
$storage_type = get_value_in_array("storage_type", $options, "data");
$mode = get_value_in_array("mode", $options, "w");