diff --git a/controllers/Download.php b/controllers/Download.php index 8dfaa9a..58ec832 100644 --- a/controllers/Download.php +++ b/controllers/Download.php @@ -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;