Catch error when calling Import::move
This commit is contained in:
parent
7e6fd3ccc7
commit
830e2362d3
@ -116,7 +116,13 @@ class Import extends Module {
|
|||||||
|
|
||||||
if (!isset($path)) $path = LYCHEE_UPLOADS_IMPORT;
|
if (!isset($path)) $path = LYCHEE_UPLOADS_IMPORT;
|
||||||
|
|
||||||
if ($useTemp===true) $path = Import::move($database, $path);
|
if ($useTemp===true) {
|
||||||
|
$path = Import::move($database, $path);
|
||||||
|
if ($path===false) {
|
||||||
|
Log::error($database, __METHOD__, __LINE__, 'Failed to move import to temporary directory');
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
$error = false;
|
$error = false;
|
||||||
$contains['photos'] = false;
|
$contains['photos'] = false;
|
||||||
|
Loading…
Reference in New Issue
Block a user