Made linkedin pictureurl an optional response data element
parent
f3cac73c24
commit
bae3b4d927
|
@ -37,6 +37,7 @@ class LinkedIn extends AbstractProvider
|
||||||
$email = (isset($response->emailAddress)) ? $response->emailAddress : null;
|
$email = (isset($response->emailAddress)) ? $response->emailAddress : null;
|
||||||
$location = (isset($response->location->name)) ? $response->location->name : null;
|
$location = (isset($response->location->name)) ? $response->location->name : null;
|
||||||
$description = (isset($response->headline)) ? $response->headline : null;
|
$description = (isset($response->headline)) ? $response->headline : null;
|
||||||
|
$pictureUrl = (isset($response->pictureUrl)) ? $response->pictureUrl : null;
|
||||||
|
|
||||||
$user->exchangeArray(array(
|
$user->exchangeArray(array(
|
||||||
'uid' => $response->id,
|
'uid' => $response->id,
|
||||||
|
@ -46,7 +47,7 @@ class LinkedIn extends AbstractProvider
|
||||||
'email' => $email,
|
'email' => $email,
|
||||||
'location' => $location,
|
'location' => $location,
|
||||||
'description' => $description,
|
'description' => $description,
|
||||||
'imageurl' => $response->pictureUrl,
|
'imageurl' => $pictureUrl,
|
||||||
'urls' => $response->publicProfileUrl,
|
'urls' => $response->publicProfileUrl,
|
||||||
));
|
));
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue