Rework album/tag downloads #19
@ -84,11 +84,11 @@ class Download
|
|||||||
{
|
{
|
||||||
$ids = [];
|
$ids = [];
|
||||||
|
|
||||||
$albums = Tag::getAlbums($parent_id, 0, PHP_INT_MAX, 'object');
|
$albums = Tag::getAlbums($parent_id, 0, PHP_INT_MAX);
|
||||||
foreach ($albums as $album)
|
foreach ($albums as $album)
|
||||||
{
|
{
|
||||||
$ids[] = $album->id_tag;
|
$ids[] = $album['id_tag'];
|
||||||
$ids = array_merge($ids, $this->getChildAlbumIds($album->id_tag));
|
$ids = array_merge($ids, $this->getChildAlbumIds($album['id_tag']));
|
||||||
}
|
}
|
||||||
|
|
||||||
return $ids;
|
return $ids;
|
||||||
|
Loading…
Reference in New Issue
Block a user