Skip to content

Commit

Permalink
check valid result with thumbnail as well
Browse files Browse the repository at this point in the history
  • Loading branch information
mikestecker committed Apr 12, 2018
1 parent 2890597 commit be3dbdd
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/services/VideoEmbedderService.php
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,14 @@ public function getVideoThumbnail($url) {
// not vimeo, use Embed
$image = $this->cleanUrl($this->getInfo($url)->image);

return $image;
// Check if anything exists
if (!empty($image)) {
return $image;
}
else
{
return '';
}
}
}

Expand Down

0 comments on commit be3dbdd

Please sign in to comment.