fix audio.add

This commit is contained in:
Ry0 2024-06-27 07:26:11 +03:00 committed by GitHub
parent 8786bd36fb
commit ba2e00adac
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -485,7 +485,8 @@ final class Audio extends VKAPIRequestHandler
$this->requireUser();
$this->willExecuteWriteAction();
if(!is_null($album_id))
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