mirror of
https://github.com/Yetangitu/ampache
synced 2025-10-03 01:39:28 +02:00
Use latest php-cs-fixer version
This commit is contained in:
parent
356b8f1e43
commit
47a6585c88
298 changed files with 7977 additions and 4559 deletions
8
song.php
8
song.php
|
@ -27,7 +27,9 @@ UI::show_header();
|
|||
// Switch on Action
|
||||
switch ($_REQUEST['action']) {
|
||||
case 'delete':
|
||||
if (AmpConfig::get('demo_mode')) { break; }
|
||||
if (AmpConfig::get('demo_mode')) {
|
||||
break;
|
||||
}
|
||||
|
||||
$song_id = scrub_in($_REQUEST['song_id']);
|
||||
show_confirmation(
|
||||
|
@ -39,7 +41,9 @@ switch ($_REQUEST['action']) {
|
|||
);
|
||||
break;
|
||||
case 'confirm_delete':
|
||||
if (AmpConfig::get('demo_mode')) { break; }
|
||||
if (AmpConfig::get('demo_mode')) {
|
||||
break;
|
||||
}
|
||||
|
||||
$song = new Song($_REQUEST['song_id']);
|
||||
if (!Catalog::can_remove($song)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue