summaryrefslogtreecommitdiffstats
path: root/song.php
diff options
context:
space:
mode:
Diffstat (limited to 'song.php')
-rw-r--r--song.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/song.php b/song.php
index 248cf490..6e8c02cf 100644
--- a/song.php
+++ b/song.php
@@ -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'];
}