From 9ae71641050f35d3695c842096cb1023452ab3ce Mon Sep 17 00:00:00 2001 From: celestora Date: Sun, 21 Aug 2022 00:30:56 +0300 Subject: [PATCH] VKAPI(Wall.get): fix count param --- VKAPI/Handlers/Wall.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/VKAPI/Handlers/Wall.php b/VKAPI/Handlers/Wall.php index cb4720dc..c669cd02 100644 --- a/VKAPI/Handlers/Wall.php +++ b/VKAPI/Handlers/Wall.php @@ -19,7 +19,7 @@ final class Wall extends VKAPIRequestHandler $items = []; $profiles = []; $groups = []; - $count = $posts->getPostCountOnUserWall($owner_id); + $cnt = $posts->getPostCountOnUserWall($owner_id); $wallOnwer = (new UsersRepo)->get($owner_id); @@ -143,15 +143,15 @@ final class Wall extends VKAPIRequestHandler } return (object) [ - "count" => $count, - "items" => (array)$items, - "profiles" => (array)$profilesFormatted, - "groups" => (array)$groupsFormatted + "count" => $cnt, + "items" => $items, + "profiles" => $profilesFormatted, + "groups" => $groupsFormatted ]; } else return (object) [ - "count" => $count, - "items" => (array)$items + "count" => $cnt, + "items" => $items ]; }