VKAPI: fix sex :DDD

This commit is contained in:
veselcraft 2022-03-27 17:57:48 +03:00
parent 8caecbe362
commit 6ea9d81f7a
No known key found for this signature in database
GPG key ID: AED66BC1AC628A4E

View file

@ -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;