mirror of
https://github.com/openvk/openvk
synced 2025-01-09 01:09:46 +03:00
VKAPI: Fix funny bug when id is outputed as string if profile is deactivated
Closes #637
This commit is contained in:
parent
bbdfb04c01
commit
71b9c57030
1 changed files with 1 additions and 1 deletions
|
@ -27,7 +27,7 @@ final class Users extends VKAPIRequestHandler
|
||||||
$usr = $users->get((int) $usrs[$i]);
|
$usr = $users->get((int) $usrs[$i]);
|
||||||
if(is_null($usr) || $usr->isDeleted()) {
|
if(is_null($usr) || $usr->isDeleted()) {
|
||||||
$response[$i] = (object)[
|
$response[$i] = (object)[
|
||||||
"id" => $usrs[$i],
|
"id" => (int) $usrs[$i],
|
||||||
"first_name" => "DELETED",
|
"first_name" => "DELETED",
|
||||||
"last_name" => "",
|
"last_name" => "",
|
||||||
"deactivated" => "deleted"
|
"deactivated" => "deleted"
|
||||||
|
|
Loading…
Reference in a new issue