Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 6172519c7d1..9006a2e8cbe 100755
--- a/lib/private/preview.php
+++ b/lib/private/preview.php
@@ -537,7 +537,9 @@ class Preview {
if (is_null($this->preview)) {
$this->getPreview();
}
- $this->preview->show($mimeType);
+ if ($this->preview instanceof \OC_Image) {
+ $this->preview->show($mimeType);
+ }
}
/**