diff options
Diffstat (limited to 'song.php')
-rw-r--r-- | song.php | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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': |