mirror of
https://github.com/nextcloud/server.git
synced 2026-04-22 23:03:00 -04:00
make sure preview prop is instanceof OC_Image before using it in showPreview
This commit is contained in:
parent
69726d951e
commit
071e4bfc06
1 changed files with 3 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue