mirror of
https://github.com/nextcloud/server.git
synced 2026-06-09 08:44:07 -04:00
Ensure max preview image is not null
Signed-off-by: Glandos <bugs-github@antipoul.fr>
This commit is contained in:
parent
b6c65fee2a
commit
4954bead1d
1 changed files with 3 additions and 0 deletions
|
|
@ -208,6 +208,9 @@ class Generator {
|
|||
if ($maxPreviewImage === null) {
|
||||
$maxPreviewImage = $this->helper->getImage($maxPreview);
|
||||
}
|
||||
if ($maxPreviewImage === null) {
|
||||
throw new NotFoundException();
|
||||
}
|
||||
|
||||
$preview = $this->generatePreview($previewFolder, $maxPreviewImage, $width, $height, $crop, $maxWidth, $maxHeight, $previewVersion);
|
||||
// New file, augment our array
|
||||
|
|
|
|||
Loading…
Reference in a new issue