mirror of
https://github.com/nextcloud/server.git
synced 2026-06-12 10:10:49 -04:00
Merge pull request #18511 from Al2Klimov/bugfix/movie-getthumbnail
Movie#getThumbnail(): compare Movie#generateThumbNail() to null, not false
This commit is contained in:
commit
a5f6ec74ce
1 changed files with 2 additions and 2 deletions
|
|
@ -52,9 +52,9 @@ class Movie extends ProviderV2 {
|
|||
$absPath = $this->getLocalFile($file, 5242880); // only use the first 5MB
|
||||
|
||||
$result = $this->generateThumbNail($maxX, $maxY, $absPath, 5);
|
||||
if ($result === false) {
|
||||
if ($result === null) {
|
||||
$result = $this->generateThumbNail($maxX, $maxY, $absPath, 1);
|
||||
if ($result === false) {
|
||||
if ($result === null) {
|
||||
$result = $this->generateThumbNail($maxX, $maxY, $absPath, 0);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue