[fix] error on create new dir with import function

This commit is contained in:
Knah Tsaeb 2013-08-12 15:10:29 +02:00
parent b4ea8f917b
commit e631d164c2
1 changed files with 2 additions and 2 deletions

View File

@ -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?>");