Fallback that will prevent causing errors in 4.x version of VK API

This commit is contained in:
trogwar
2016-07-21 05:59:30 +03:00
committed by Jack Wall
parent 63db282f91
commit 3cddf40512

View File

@@ -171,6 +171,9 @@ class Vkontakte extends AbstractProvider
if (!empty($additional['email'])) {
$response['email'] = $additional['email'];
}
if (!empty($response['uid']) && 4 === floor($this->version)) {
$response['id'] = $response['uid'];
}
if (!empty($additional['user_id'])) {
$response['id'] = $additional['user_id'];
}