VKAPI: fix php 8 issue when DELETED appears in empty friend list

This commit is contained in:
veselcraft 2023-11-13 12:36:46 +03:00
parent 784b19aaf7
commit 626b5b49bb
No known key found for this signature in database
GPG key ID: 9CF0B42766CCF7BA

View file

@ -13,6 +13,9 @@ final class Users extends VKAPIRequestHandler
if($user_ids == "0") if($user_ids == "0")
$user_ids = (string) $authuser->getId(); $user_ids = (string) $authuser->getId();
if($user_ids == "")
return array();
$usrs = explode(',', $user_ids); $usrs = explode(',', $user_ids);
$response = array(); $response = array();