Skip to content
Snippets Groups Projects
Commit 7cc2143b authored by Alexander A. Klimov's avatar Alexander A. Klimov
Browse files

Movie#getThumbnail(): compare Movie#generateThumbNail() to null, not false

parent bc291d50
No related branches found
No related tags found
No related merge requests found
...@@ -52,9 +52,9 @@ class Movie extends ProviderV2 { ...@@ -52,9 +52,9 @@ class Movie extends ProviderV2 {
$absPath = $this->getLocalFile($file, 5242880); // only use the first 5MB $absPath = $this->getLocalFile($file, 5242880); // only use the first 5MB
$result = $this->generateThumbNail($maxX, $maxY, $absPath, 5); $result = $this->generateThumbNail($maxX, $maxY, $absPath, 5);
if ($result === false) { if ($result === null) {
$result = $this->generateThumbNail($maxX, $maxY, $absPath, 1); $result = $this->generateThumbNail($maxX, $maxY, $absPath, 1);
if ($result === false) { if ($result === null) {
$result = $this->generateThumbNail($maxX, $maxY, $absPath, 0); $result = $this->generateThumbNail($maxX, $maxY, $absPath, 0);
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment