Skip to content

Commit

Permalink
manage missing caption
Browse files Browse the repository at this point in the history
  • Loading branch information
pgrimaud committed Jan 9, 2018
1 parent 2b404c8 commit 7b8da5a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Instagram/Hydrator.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public function getHydratedData()

$media->setId($node['id']);
$media->setTypeName($node['__typename']);
$media->setCaption($node['caption']);
$media->setCaption(isset($node['caption']) ? $node['caption'] : null);

$media->setHeight($node['dimensions']['height']);
$media->setWidth($node['dimensions']['width']);
Expand Down

0 comments on commit 7b8da5a

Please sign in to comment.