Skip to content

Commit

Permalink
fix location factory model
Browse files Browse the repository at this point in the history
  • Loading branch information
ijalnasution committed May 26, 2020
1 parent 9cfb6d3 commit 9af9fb3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/InstagramCrawler.php
Original file line number Diff line number Diff line change
Expand Up @@ -201,8 +201,8 @@ private function loadMedia(array $media): Media
if (array_key_exists('location', $media)) {
$location = LocationFactory::create(
(int) $media['location']['id'],
$media['location']['name'],
$media['location']['slug']
$media['location']['name'] ?? '',
$media['location']['slug'] ?? ''
);
}
$user = UserFactory::create(
Expand Down

0 comments on commit 9af9fb3

Please sign in to comment.