diff options
author | Alexander A. Klimov <grandmaster@al2klimov.de> | 2019-12-21 08:53:13 +0100 |
---|---|---|
committer | Alexander A. Klimov <grandmaster@al2klimov.de> | 2019-12-21 08:55:51 +0100 |
commit | 7cc2143bb3119d4fe4810876549230c17dea90ba (patch) | |
tree | 9e0fd9917c0d0ce6e96cfe5969faac9749735756 /lib | |
parent | bc291d50c30ea7095cecafb89bdbb88ec54e3d8a (diff) | |
download | nextcloud-server-7cc2143bb3119d4fe4810876549230c17dea90ba.tar.gz nextcloud-server-7cc2143bb3119d4fe4810876549230c17dea90ba.zip |
Movie#getThumbnail(): compare Movie#generateThumbNail() to null, not false
Signed-off-by: Alexander A. Klimov <grandmaster@al2klimov.de>
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); } } |