getId($artist_name); if (!$artist_id) { echo "Bad artist name!\n\n\n"; die; } $albums = $rg_model->getArtistAlbums($artist_id); $release_groups = $r_model->getReleases(array_keys($albums), true); $g_tracks = array(); foreach ($release_groups as $release_group => $releases) { $g_tracks[$release_group] = $t_model->getUniqueReleaseTracks(array_keys($releases)); } include 'tpl/index.php';