Minor optimisation to Download::getChildAlbumIds.

This commit is contained in:
Aaron van Geffen 2020-03-01 17:09:58 +01:00
parent 1b7e83e11e
commit 2bb29d7224

View File

@ -84,11 +84,11 @@ class Download
{
$ids = [];
$albums = Tag::getAlbums($parent_id, 0, PHP_INT_MAX, 'object');
$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;