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

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