summaryrefslogtreecommitdiffstats
path: root/song.php
diff options
context:
space:
mode:
Diffstat (limited to 'song.php')
-rw-r--r--song.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/song.php b/song.php
index bab73a04..b7797c7c 100644
--- a/song.php
+++ b/song.php
@@ -37,8 +37,6 @@ $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']);
@@ -50,6 +48,8 @@ switch ($action) {
else {
$song_ids = $_POST['song'];
}
+ // Make sure they actually passed soemthing
+ if (!count($song_ids)) { header("Location:" . return_referer()); exit; }
break;
/* This is run if we need to gather info based on a tmp playlist */
case 'tmp_playlist':