summaryrefslogtreecommitdiffstats
path: root/song.php
diff options
context:
space:
mode:
authorxgizzmo <xgizzmo@ampache>2005-12-26 20:45:20 +0000
committerxgizzmo <xgizzmo@ampache>2005-12-26 20:45:20 +0000
commit7ea54a5c7127d48d300128869105a1e6fb2928f9 (patch)
treef0306520cee6b6bef116c577f5fa0754db180dc4 /song.php
parenta792f82334ab87cdcaf9cb8c9a87b9bc16812045 (diff)
downloadampache-7ea54a5c7127d48d300128869105a1e6fb2928f9.tar.gz
ampache-7ea54a5c7127d48d300128869105a1e6fb2928f9.tar.bz2
ampache-7ea54a5c7127d48d300128869105a1e6fb2928f9.zip
Removed some debug code to fix random play.
Diffstat (limited to 'song.php')
-rw-r--r--song.php7
1 files changed, 1 insertions, 6 deletions
diff --git a/song.php b/song.php
index 9c2dbe79..2a88a523 100644
--- a/song.php
+++ b/song.php
@@ -98,16 +98,11 @@ elseif ( $_REQUEST['random'] ) {
if($_REQUEST['catalog'] != '-1') {
$matchlist['catalog'] = $_REQUEST['catalog'];
}
- $_REQUEST['random'] = '100';
- $_REQUEST['random_type'] = 'normal';
- unset($matchlist['genre']);
- unset($matchlist['catalog']);
/* Setup the options array */
$options = array('limit' => $_REQUEST['random'], 'random_type' => $_REQUEST['random_type']);
-
-
$song_ids = get_random_songs($options, $matchlist);
}
+
elseif ( $_REQUEST['artist_random'] ) {
$artist = new Artist($_REQUEST['artist_random']);
$artist->get_count();