Minor optimisation to Download::getChildAlbumIds.
This commit is contained in:
parent
1b7e83e11e
commit
2bb29d7224
@ -84,11 +84,11 @@ class Download
|
||||
{
|
||||
$ids = [];
|
||||
|
||||
$albums = Tag::getAlbums($parent_id, 0, PHP_INT_MAX, 'object');
|
||||
foreach($albums as $album)
|
||||
$albums = Tag::getAlbums($parent_id, 0, PHP_INT_MAX);
|
||||
foreach ($albums as $album)
|
||||
{
|
||||
$ids[] = $album->id_tag;
|
||||
$ids = array_merge($ids, $this->getChildAlbumIds($album->id_tag));
|
||||
$ids[] = $album['id_tag'];
|
||||
$ids = array_merge($ids, $this->getChildAlbumIds($album['id_tag']));
|
||||
}
|
||||
|
||||
return $ids;
|
||||
|
Loading…
Reference in New Issue
Block a user