VKAPI: Fix funny bug when id is outputed as string if profile is deactivated

Closes #637
This commit is contained in:
veselcraft 2022-08-10 23:09:07 +03:00
parent bbdfb04c01
commit 71b9c57030
No known key found for this signature in database
GPG key ID: AED66BC1AC628A4E

View file

@ -27,7 +27,7 @@ final class Users extends VKAPIRequestHandler
$usr = $users->get((int) $usrs[$i]);
if(is_null($usr) || $usr->isDeleted()) {
$response[$i] = (object)[
"id" => $usrs[$i],
"id" => (int) $usrs[$i],
"first_name" => "DELETED",
"last_name" => "",
"deactivated" => "deleted"