mirror of
https://github.com/openvk/openvk
synced 2025-04-19 14:43:01 +03:00
Update Photos.php
This commit is contained in:
parent
e4983df532
commit
59513bf2e2
1 changed files with 6 additions and 5 deletions
|
@ -285,7 +285,7 @@ final class Photos extends VKAPIRequestHandler
|
|||
$this->fail(15, "Access denied");
|
||||
}
|
||||
|
||||
if (!is_null($title) && !empty($title) && !ctype_space($content)) {
|
||||
if (!is_null($title) && !empty($title) && !ctype_space($title)) {
|
||||
$album->setName($title);
|
||||
}
|
||||
if (!is_null($description)) {
|
||||
|
@ -335,9 +335,10 @@ final class Photos extends VKAPIRequestHandler
|
|||
} else {
|
||||
$album_ids = explode(',', $album_ids);
|
||||
foreach ($album_ids as $album_id) {
|
||||
$album = (new Albums())->getAlbumByOwnerAndId((int)$owner_id, (int)$album_id);
|
||||
if (!$album || $album->isDeleted() || !$album->canBeViewedBy($this->getUser()))
|
||||
$album = (new Albums())->getAlbumByOwnerAndId((int) $owner_id, (int) $album_id);
|
||||
if (!$album || $album->isDeleted() || !$album->canBeViewedBy($this->getUser())) {
|
||||
continue;
|
||||
}
|
||||
|
||||
$albums_list[] = $album;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue