From 626b5b49bb9169e024f9e9584c6c49692c61aab2 Mon Sep 17 00:00:00 2001 From: veselcraft Date: Mon, 13 Nov 2023 12:36:46 +0300 Subject: [PATCH] VKAPI: fix php 8 issue when DELETED appears in empty friend list --- VKAPI/Handlers/Users.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/VKAPI/Handlers/Users.php b/VKAPI/Handlers/Users.php index 6eccab1b..65b7c191 100644 --- a/VKAPI/Handlers/Users.php +++ b/VKAPI/Handlers/Users.php @@ -12,6 +12,9 @@ final class Users extends VKAPIRequestHandler $users = new UsersRepo; if($user_ids == "0") $user_ids = (string) $authuser->getId(); + + if($user_ids == "") + return array(); $usrs = explode(',', $user_ids); $response = array();