mirror of
https://github.com/Yetangitu/ampache
synced 2025-10-05 02:39:47 +02:00
Resolve #401 new database update, reset album thumbs and use resized art...
This commit is contained in:
parent
c9ccb05a40
commit
e474991d13
14 changed files with 94 additions and 38 deletions
|
@ -116,12 +116,16 @@ switch ($_REQUEST['action']) {
|
|||
break;
|
||||
}
|
||||
|
||||
$songs = array();
|
||||
|
||||
// Itterate through and add them to our new playlist
|
||||
foreach ($objects as $uid=>$object_data) {
|
||||
// For now only allow songs on here, we'll change this later
|
||||
if ($object_data['1'] == 'song') {
|
||||
$songs[] = $object_data['0'];
|
||||
}
|
||||
foreach ($objects as $element) {
|
||||
$type = array_shift($element);
|
||||
switch ($type) {
|
||||
case 'song':
|
||||
$songs[] = array_shift($element);
|
||||
break;
|
||||
} // end switch
|
||||
} // foreach
|
||||
|
||||
// Add our new songs
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue