summaryrefslogtreecommitdiffstats
path: root/lib/private/preview.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/private/preview.php')
-rwxr-xr-xlib/private/preview.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/private/preview.php b/lib/private/preview.php
index 292a8d481fd..b04cc2b8564 100755
--- a/lib/private/preview.php
+++ b/lib/private/preview.php
@@ -548,7 +548,9 @@ class Preview {
if (is_null($this->preview)) {
$this->getPreview();
}
- $this->preview->show($mimeType);
+ if ($this->preview instanceof \OC_Image) {
+ $this->preview->show($mimeType);
+ }
}
/**