Skip to content

Commit

Permalink
Merge pull request #2 from imaimai86/patch-2
Browse files Browse the repository at this point in the history
Avoid warnings when proper scope not included
  • Loading branch information
jonjomckay committed Sep 23, 2017
2 parents 1498e7b + c6c9fa1 commit 1efff48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Oauth2/Client/Provider/Spotify.php
Expand Up @@ -58,7 +58,7 @@ public function userDetails($response, AccessToken $token)
$user = new User();
$user->uid = $response['id'];
$user->name = $response['display_name'];
$user->email = $response['email'];
$user->email = !empty($response['email']) ? $response['email'] : null;
$user->imageUrl = isset($response['images'][0]['url']) ?: null;
$user->urls = $response['external_urls'];

Expand Down

0 comments on commit 1efff48

Please sign in to comment.