summaryrefslogtreecommitdiffstats
path: root/lib/private/preview.php
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2015-07-17 13:18:19 +0200
committerRobin Appelman <icewind@owncloud.com>2015-10-01 13:14:47 +0200
commit52d4495793377c8eb2c2cdabf8ec8b8cce2dd9d1 (patch)
tree831574fadad95d376c768efb24ffd86873c3b78b /lib/private/preview.php
parentf4d180ee5c6be5b3d061a035299079fc675b945f (diff)
downloadnextcloud-server-52d4495793377c8eb2c2cdabf8ec8b8cce2dd9d1.tar.gz
nextcloud-server-52d4495793377c8eb2c2cdabf8ec8b8cce2dd9d1.zip
use the fileinfo to check if we have a valid file
Diffstat (limited to 'lib/private/preview.php')
-rw-r--r--lib/private/preview.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/preview.php b/lib/private/preview.php
index 996bf81703b..e445f5356a4 100644
--- a/lib/private/preview.php
+++ b/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;