diff options
author | Roeland Jago Douma <rullzer@users.noreply.github.com> | 2019-12-22 20:13:04 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-12-22 20:13:04 +0100 |
commit | a5f6ec74ce1ee6d403a565419ac95685b04201cd (patch) | |
tree | 329a902da2dc58f97914e593a9df91ecfb8a78df /lib | |
parent | 136e0a9422e3afd1ae6dca509974099194bb8611 (diff) | |
parent | 7cc2143bb3119d4fe4810876549230c17dea90ba (diff) | |
download | nextcloud-server-a5f6ec74ce1ee6d403a565419ac95685b04201cd.tar.gz nextcloud-server-a5f6ec74ce1ee6d403a565419ac95685b04201cd.zip |
Merge pull request #18511 from Al2Klimov/bugfix/movie-getthumbnail
Movie#getThumbnail(): compare Movie#generateThumbNail() to null, not false
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/Preview/Movie.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/Preview/Movie.php b/lib/private/Preview/Movie.php index b7b7c98e50f..57cf9ddeaf4 100644 --- a/lib/private/Preview/Movie.php +++ b/lib/private/Preview/Movie.php @@ -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); } } |