Skip to content

Commit

Permalink
Merge pull request #22 from psp83/patch-1
Browse files Browse the repository at this point in the history
Fix for the nickname PHP notice if the Facebook user doesn't have a user...
  • Loading branch information
Phil Sturgeon committed May 3, 2012
2 parents 588649b + 30bc2aa commit 9d2bf0d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/Provider/Facebook.php
Expand Up @@ -34,7 +34,7 @@ public function get_user_info(OAuth2_Token_Access $token)
// Create a response from the request
return array(
'uid' => $user->id,
'nickname' => $user->username,
'nickname' => isset($user->username) ? $user->username : null,
'name' => $user->name,
'first_name' => $user->first_name,
'last_name' => $user->last_name,
Expand Down

0 comments on commit 9d2bf0d

Please sign in to comment.