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,8 +485,9 @@ final class Audio extends VKAPIRequestHandler
$this->requireUser(); $this->requireUser();
$this->willExecuteWriteAction(); $this->willExecuteWriteAction();
if(!is_null($album_id)) if(!is_null($album_id)) // Думаю ?int $album_id = NULL возвращает 0 из-за ?int
$this->fail(10, "album_id not implemented"); if($album_id > 0)
$this->fail(10, "album_id not implemented");
// TODO get rid of dups // TODO get rid of dups
$to = $this->getUser(); $to = $this->getUser();