1
0
Fork 0
mirror of https://github.com/Yetangitu/ampache synced 2025-10-03 01:39:28 +02:00

Remove old code and fix old php errors

This commit is contained in:
Afterster 2014-05-25 22:54:04 +02:00
parent 59d038335f
commit b16958f44e
92 changed files with 576 additions and 706 deletions

View file

@ -29,8 +29,10 @@ switch ($_REQUEST['action']) {
$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');
if (is_array($object_ids)) {
foreach ($object_ids as $object_id) {
$GLOBALS['user']->playlist->add_object($object_id, 'song');
}
}
case 'advanced':
default: