From 0fbaabb4c3047b4b49ec35d04e5aa10c7c0a3213 Mon Sep 17 00:00:00 2001 From: Karl 'vollmerk' Vollmer Date: Wed, 24 Jan 2007 08:59:59 +0000 Subject: stll some faulty french translations but its a little better --- song.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'song.php') 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': -- cgit