Minor optimisation to Download::getChildAlbumIds.

This commit is contained in:
Aaron committed 2020-03-11 12:32:44 +01:00
1 parent 1b7e83e11e
commit 2bb29d7224
1 file changed
+4 -4
+4 -4
View File
@@ -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;