mirror of
https://github.com/openvk/openvk
synced 2024-11-15 03:31:18 +03:00
VKAPI fix
This commit is contained in:
parent
0b9f415109
commit
53f3e8b4e4
1 changed files with 1 additions and 1 deletions
|
@ -52,7 +52,7 @@ final class Users extends VKAPIRequestHandler
|
|||
$response[$i]->verified = intval($usr->isVerified());
|
||||
break;
|
||||
case "sex":
|
||||
$response[$i]->sex = $usr->isFemale() ? 1 : 2;
|
||||
$response[$i]->sex = $usr->getGender();
|
||||
break;
|
||||
case "has_photo":
|
||||
$response[$i]->has_photo = is_null($usr->getAvatarPhoto()) ? 0 : 1;
|
||||
|
|
Loading…
Reference in a new issue