diff options
author | xgizzmo <xgizzmo@ampache> | 2006-01-19 03:03:26 +0000 |
---|---|---|
committer | xgizzmo <xgizzmo@ampache> | 2006-01-19 03:03:26 +0000 |
commit | 6c73477fc82280e28900b12bf974f949028ccffe (patch) | |
tree | 02d79a02ba8f2c5984583b3ae9f8b006351d52e1 /admin | |
parent | e2a9f3e557eda5a76abff96bb8b48432a8962e97 (diff) | |
download | ampache-6c73477fc82280e28900b12bf974f949028ccffe.tar.gz ampache-6c73477fc82280e28900b12bf974f949028ccffe.tar.bz2 ampache-6c73477fc82280e28900b12bf974f949028ccffe.zip |
Fixed disable/enable song
Diffstat (limited to 'admin')
-rw-r--r-- | admin/flag.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/admin/flag.php b/admin/flag.php index 96306301..df7893c2 100644 --- a/admin/flag.php +++ b/admin/flag.php @@ -78,6 +78,7 @@ switch ($action) { require_once (conf('prefix') . '/templates/show_edit_song.inc.php'); break; case 'disable': + $song_obj = new Song(); // If we pass just one, make it still work if (!is_array($_REQUEST['song_ids'])) { $song_obj->update_enabled(0,$_REQUEST['song_ids']); } else { @@ -88,6 +89,7 @@ switch ($action) { show_confirmation(_('Songs Disabled'),_('The requested song(s) have been disabled'),return_referer()); break; case "enabled": + $song_obj = new Song(); // If we pass just one, make it still work if (!is_array($_REQUEST['song_ids'])) { $song_obj->update_enabled(1,$_REQUEST['song_ids']); } else { |