Skip to content
This repository has been archived by the owner on Oct 6, 2020. It is now read-only.

Commit

Permalink
Merge pull request #19 from headcastlab/patch-1
Browse files Browse the repository at this point in the history
Make email nullable
  • Loading branch information
bramdevries committed Dec 3, 2014
2 parents 14420be + ffe5655 commit 6f0ec9e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/OAuth2/Provider/Facebook.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public function get_user_info(Token_Access $token)
'first_name'=> (property_exists($user, 'first_name') ? $user->first_name : null),
'last_name'=> (property_exists($user, 'last_name') ? $user->last_name : null),
'name' => $user->name,
'email' => $user->email,
'email' => (property_exists($user, 'email') ? $user->email : null),
'location' => !empty($user->hometown->name) ? $user->hometown->name : null,
'gender' => $user->gender,
'timezone' => $user->timezone,
Expand Down

0 comments on commit 6f0ec9e

Please # to comment.