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:
parent
59d038335f
commit
b16958f44e
92 changed files with 576 additions and 706 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue