bugfix
(à la volée parce que j'ai supprimé mes fichiers de dev... ><)
This commit is contained in:
parent
4b86dcf26d
commit
2b20cf08b7
1 changed files with 1 additions and 1 deletions
|
@ -568,7 +568,7 @@ if(file_exists('import.json'))
|
|||
$file = array_shift($json['files']); /* get first element while unstacking */
|
||||
if(!empty($file))
|
||||
{ copy($remoteurl.$file, "media/$file"); file_put_contents('import.json', json_encode($json)); } /* TOCHECK: get_headers() & filesize() when header "content-lenght" */
|
||||
else { unlink('import.json'); } /* first element empty: import finished */
|
||||
else { unlink('import.json'); break; } /* first element empty: import finished */
|
||||
$time = time();
|
||||
}
|
||||
$count = count($json['files']);
|
||||
|
|
Loading…
Reference in a new issue