diff options
Diffstat (limited to 'song.php')
-rw-r--r-- | song.php | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -50,6 +50,10 @@ switch ($action) { if ($type == 'album') { $song_ids = get_songs_from_type($type, $_POST['song'], $_REQUEST['artist_id']); } + elseif ($_REQUEST['playlist_id']) { + $playlist = new Playlist($_REQUEST['playlist_id']); + $song_ids = $playlist->get_songs(); + } else { $song_ids = $_POST['song']; } |