Skip to content

Commit

Permalink
Handle not available fields gender, url
Browse files Browse the repository at this point in the history
  • Loading branch information
autowp committed May 29, 2018
1 parent cc0dd2b commit 61944c2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/GooglePlus.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,10 +86,10 @@ public function getData(array $options)
return new Result([
'externalId' => $ownerDetailsArray['id'],
'name' => $ownerDetailsArray['displayName'],
'profileUrl' => $ownerDetailsArray['url'],
'profileUrl' => isset($ownerDetailsArray['url']) ? $ownerDetailsArray['url'] : null,
'photoUrl' => $photoUrl,
'email' => $email,
'gender' => $ownerDetailsArray['gender'],
'gender' => isset($ownerDetailsArray['gender']) ? $ownerDetailsArray['gender'] : null,
'language' => $ownerDetailsArray['language'],
'location' => $location,
'birthday' => $birthday
Expand Down

0 comments on commit 61944c2

Please sign in to comment.