use the fileinfo to check if we have a valid file

This commit is contained in:
Robin Appelman 2015-07-17 13:18:19 +02:00
parent f4d180ee5c
commit 52d4495793

View file

@ -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;