summaryrefslogtreecommitdiffstats
path: root/song.php
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-01-24 08:59:59 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-01-24 08:59:59 +0000
commit0fbaabb4c3047b4b49ec35d04e5aa10c7c0a3213 (patch)
tree754e47971e6edcbaeb3108b7f986a1f612cac48f /song.php
parentf881a29430dc6d1cbca1a74a22048dd605a27ad0 (diff)
downloadampache-0fbaabb4c3047b4b49ec35d04e5aa10c7c0a3213.tar.gz
ampache-0fbaabb4c3047b4b49ec35d04e5aa10c7c0a3213.tar.bz2
ampache-0fbaabb4c3047b4b49ec35d04e5aa10c7c0a3213.zip
stll some faulty french translations but its a little better
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':