close #321 fix linked in response
This commit is contained in:
@ -21,9 +21,17 @@ class LinkedIn extends BaseLinkedIn implements AuthClientInterface
|
||||
*/
|
||||
public function getEmail()
|
||||
{
|
||||
return isset($this->getUserAttributes()['email-address'])
|
||||
? $this->getUserAttributes()['email-address']
|
||||
: null;
|
||||
$userAttributes = $this->getUserAttributes();
|
||||
|
||||
if (isset($userAttributes['email-address'])) {
|
||||
return $userAttributes['email-address'];
|
||||
}
|
||||
|
||||
if (isset($userAttributes['email'])) {
|
||||
return $userAttributes['email'];
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user