Skip to content

Commit

Permalink
Check if title attribute not empty
Browse files Browse the repository at this point in the history
  • Loading branch information
jochensengier authored Sep 27, 2019
1 parent e8db3ec commit 55ffbb7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/parsers/Vimeo.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public function getVideoInfoWithAPI($id)

return [
'id' => $id,
'title' => $json['title'],
'title' => ! empty($json['title']) ? $json['title'] : null,
'description' => ! empty($json['description']) ? $json['description'] : null,
'thumbnail' => ! empty($json['thumbnail_url']) ? str_replace('_295x166', '', $json['thumbnail_url']) : null,
'duration' => ! empty($json['duration']) ? $json['duration'] : 0,
Expand Down

0 comments on commit 55ffbb7

Please sign in to comment.