From ba2e00adac029c749c7457a0cfb9303ca2b061b3 Mon Sep 17 00:00:00 2001 From: Ry0 <43928323+xRy0@users.noreply.github.com> Date: Thu, 27 Jun 2024 07:26:11 +0300 Subject: [PATCH] fix audio.add --- VKAPI/Handlers/Audio.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/VKAPI/Handlers/Audio.php b/VKAPI/Handlers/Audio.php index 413a2a3a..43c6acdf 100644 --- a/VKAPI/Handlers/Audio.php +++ b/VKAPI/Handlers/Audio.php @@ -485,8 +485,9 @@ final class Audio extends VKAPIRequestHandler $this->requireUser(); $this->willExecuteWriteAction(); - if(!is_null($album_id)) - $this->fail(10, "album_id not implemented"); + if(!is_null($album_id)) // Думаю ?int $album_id = NULL возвращает 0 из-за ?int + if($album_id > 0) + $this->fail(10, "album_id not implemented"); // TODO get rid of dups $to = $this->getUser();