From 003350beafe44940813385bc3b35682ce85b85e0 Mon Sep 17 00:00:00 2001 From: mrilyew <99399973+mrilyew@users.noreply.github.com> Date: Sat, 31 May 2025 14:17:13 +0300 Subject: [PATCH] fix: contacts field that duplicated to each item --- VKAPI/Handlers/Account.php | 2 +- VKAPI/Handlers/Groups.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/VKAPI/Handlers/Account.php b/VKAPI/Handlers/Account.php index 5473111f..0ac810a3 100644 --- a/VKAPI/Handlers/Account.php +++ b/VKAPI/Handlers/Account.php @@ -176,7 +176,7 @@ final class Account extends VKAPIRequestHandler try { $user->save(); - } catch(\TypeError $e) { + } catch (\TypeError $e) { $output["changed"] = 0; } } diff --git a/VKAPI/Handlers/Groups.php b/VKAPI/Handlers/Groups.php index 6492ca20..8933ca5a 100644 --- a/VKAPI/Handlers/Groups.php +++ b/VKAPI/Handlers/Groups.php @@ -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) {