diff options
Diffstat (limited to 'lib/private/preview.php')
-rwxr-xr-x | lib/private/preview.php | 4 |
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); + } } /** |