Added logging for subfolders

This commit is contained in:
Tobias Reich 2014-05-16 23:22:41 +02:00
parent 0dc54c44e0
commit 5689278908

View File

@ -160,7 +160,11 @@ class Import extends Module {
continue; continue;
} }
Import::server($newAlbumID, $file . '/', false); if (Import::server($newAlbumID, $file . '/', false)==='Warning: Folder empty or no readable files to process!') {
$error = true;
Log::error($database, __METHOD__, __LINE__, 'Could not import folder. Function returned error');
continue;
}
$contains['albums'] = true; $contains['albums'] = true;