summaryrefslogtreecommitdiffstats
path: root/random.php
diff options
context:
space:
mode:
Diffstat (limited to 'random.php')
-rw-r--r--random.php7
1 files changed, 2 insertions, 5 deletions
diff --git a/random.php b/random.php
index 841b333b..e8dd8fb4 100644
--- a/random.php
+++ b/random.php
@@ -37,18 +37,15 @@ show_header();
switch ($_REQUEST['action']) {
case 'get_advanced':
- $object_ids = Random::advanced($_POST);
+ $object_ids = Random::advanced($_REQUEST['type'], $_POST);
// We need to add them to the active playlist
foreach ($object_ids as $object_id) {
- $GLOBALS['user']->playlist->add_object($object_id,'song');
+ $GLOBALS['user']->playlist->add_object($object_id, 'song');
}
-
case 'advanced':
default:
require_once Config::get('prefix') . '/templates/show_random.inc.php';
-/* require_once Config::get('prefix') . '/templates/show_random_rules.inc.php';*/
-
break;
} // end switch