summaryrefslogtreecommitdiffstats
path: root/lib/private/Preview.php
diff options
context:
space:
mode:
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 70b000a30ee..67838a8d4a3 100644
--- a/lib/private/Preview.php
+++ b/lib/private/Preview.php
@@ -763,7 +763,7 @@ class Preview {
$this->preview = null;
$fileInfo = $this->getFileInfo();
- if ($fileInfo === null || $fileInfo === false) {
+ if ($fileInfo === null || $fileInfo === false || !$fileInfo->isReadable()) {
return new \OC_Image();
}