[fix] error on create new dir with import function
This commit is contained in:
parent
b4ea8f917b
commit
e631d164c2
|
@ -222,8 +222,8 @@ function importDir($bc, $fullListDir, $fullListFile) {
|
|||
}
|
||||
$file = json_decode(file_get_contents($tmpName), true);
|
||||
|
||||
if (!empty($file -> hash)) {
|
||||
mkdir($file -> hash);
|
||||
if (!empty($file['hash'])) {
|
||||
mkdir($file['hash']);
|
||||
}
|
||||
$fullListDir[$file['hash']] = $file['name'];
|
||||
file_put_contents($GLOBALS['config']['LISTDIR'], "<?php\n\$fullListDir=".var_export($fullListDir, true).";\n?>");
|
||||
|
|
Loading…
Reference in New Issue