fix: contacts field that duplicated to each item

This commit is contained in:
mrilyew 2025-05-31 14:17:13 +03:00 committed by Alexander Minkin
parent 782046349a
commit 003350beaf
2 changed files with 2 additions and 2 deletions

View file

@ -176,7 +176,7 @@ final class Account extends VKAPIRequestHandler
try {
$user->save();
} catch(\TypeError $e) {
} catch (\TypeError $e) {
$output["changed"] = 0;
}
}

View file

@ -245,7 +245,7 @@ final class Groups extends VKAPIRequestHandler
$response[$i]->suggested_count = $clb->getSuggestedPostsCount($this->getUser());
break;
case "contacts":
$contacts;
$contacts = [];
$contactTmp = $clb->getManagers(1, true);
foreach ($contactTmp as $contact) {