mirror of
https://github.com/openvk/openvk
synced 2024-12-23 09:01:15 +03:00
VKAPI: fix sex :DDD
This commit is contained in:
parent
8caecbe362
commit
6ea9d81f7a
1 changed files with 1 additions and 1 deletions
|
@ -53,7 +53,7 @@ final class Users extends VKAPIRequestHandler
|
||||||
$response[$i]->verified = intval($usr->isVerified());
|
$response[$i]->verified = intval($usr->isVerified());
|
||||||
break;
|
break;
|
||||||
case 'sex':
|
case 'sex':
|
||||||
$response[$i]->sex = $authuser->isFemale() ? 1 : 2;
|
$response[$i]->sex = $usr->isFemale() ? 1 : 2;
|
||||||
break;
|
break;
|
||||||
case 'has_photo':
|
case 'has_photo':
|
||||||
$response[$i]->has_photo = is_null($usr->getAvatarPhoto()) ? 0 : 1;
|
$response[$i]->has_photo = is_null($usr->getAvatarPhoto()) ? 0 : 1;
|
||||||
|
|
Loading…
Reference in a new issue