Browse Source

use the fileinfo to check if we have a valid file

remotes/origin/certificate-external-storage-visibility
Robin Appelman 11 years ago
parent
commit
52d4495793
  1. 2
      lib/private/preview.php

2
lib/private/preview.php

@ -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…
Cancel
Save