summaryrefslogtreecommitdiffstats
path: root/song.php
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2006-01-05 15:43:44 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2006-01-05 15:43:44 +0000
commite25a9d5480b6f12584a1297eb907906436f52da6 (patch)
treeb888fe36c538d527e77eb9769af0d257ef337fe3 /song.php
parent181c3a17f8c5a9ac194f6c522d79a4b8bc8317b2 (diff)
downloadampache-e25a9d5480b6f12584a1297eb907906436f52da6.tar.gz
ampache-e25a9d5480b6f12584a1297eb907906436f52da6.tar.bz2
ampache-e25a9d5480b6f12584a1297eb907906436f52da6.zip
I swear the last db upgrade of this release... at least it better be or I will have to beat myself up
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'];
}