diff --git a/lib/private/preview.php b/lib/private/preview.php index 292a8d481f..b04cc2b856 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); + } } /**