diff options
author | Georg Ehrke <developer@georgehrke.com> | 2014-09-21 17:30:29 +0200 |
---|---|---|
committer | Georg Ehrke <developer@georgehrke.com> | 2014-09-21 17:30:29 +0200 |
commit | 071e4bfc06e2cbeac831d79e3d59337fbc73597d (patch) | |
tree | 65b650ec03fef45a94614541bc534aabfcfb0ca1 | |
parent | 69726d951e805e8692907c99b24edbc3099b29d4 (diff) | |
download | nextcloud-server-071e4bfc06e2cbeac831d79e3d59337fbc73597d.tar.gz nextcloud-server-071e4bfc06e2cbeac831d79e3d59337fbc73597d.zip |
make sure preview prop is instanceof OC_Image before using it in showPreview
-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); + } } /** |