summaryrefslogtreecommitdiffstats
path: root/song.php
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-01-22 08:39:24 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-01-22 08:39:24 +0000
commit56ce11f771d173f559f2608c83422a94fcc37165 (patch)
treed537804a9c707cf7fb1743fb8d112bb87040f718 /song.php
parent595b211d5e59e320586d09e16878b24bdb8b3375 (diff)
downloadampache-56ce11f771d173f559f2608c83422a94fcc37165.tar.gz
ampache-56ce11f771d173f559f2608c83422a94fcc37165.tar.bz2
ampache-56ce11f771d173f559f2608c83422a94fcc37165.zip
added config version check, fixed play selected bug reported by chenb and fixed wmp11 now playing issue
Diffstat (limited to 'song.php')
-rw-r--r--song.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/song.php b/song.php
index 491e9fec..bab73a04 100644
--- a/song.php
+++ b/song.php
@@ -37,6 +37,8 @@ $method = scrub_in($_REQUEST['method']);
switch ($action) {
case 'play_selected':
+ // Make sure they actually passed soemthing
+ if (!count($_POST['song'])) { header("Location:" . return_referer()); exit; }
$type = scrub_in($_REQUEST['type']);
if ($type == 'album') {
$song_ids = get_songs_from_type($type, $_POST['song'], $_REQUEST['artist_id']);