codenitive / laravel-oneauth

OAuth and OAuth2 Auth bundle for Laravel
http://bundles.laravel.com/bundle/oneauth
MIT License
86 stars 16 forks source link

Fix #23 Error on Linkedin authentication #24

Closed eduardocruz closed 12 years ago

eduardocruz commented 12 years ago

Fixed #23

BEFORE: $nickname = end(explode('/', $linked_url));

AFTER: $profile_nickname = explode('/', $linked_url); $nickname = end($profile_nickname);

Explanation on PHP documentation:

The array. This array is passed by reference because it is modified by the function. This means you must pass it a real variable and not a function returning an array because only actual variables may be passed by reference.

http://www.php.net/manual/en/function.end.php