use the fileinfo to check if we have a valid file
This commit is contained in:
parent
f4d180ee5c
commit
52d4495793
1 changed files with 1 additions and 1 deletions
|
@ -375,7 +375,7 @@ class Preview {
|
|||
return false;
|
||||
}
|
||||
|
||||
if (!$this->fileView->file_exists($file)) {
|
||||
if (!$this->getFileInfo() instanceof FileInfo) {
|
||||
\OCP\Util::writeLog('core', 'File:"' . $file . '" not found', \OCP\Util::DEBUG);
|
||||
|
||||
return false;
|
||||
|
|
Loading…
Reference in a new issue