From ffac7359918b54193dab135d2ab7310271f5902b Mon Sep 17 00:00:00 2001 From: Karl 'vollmerk' Vollmer Date: Wed, 4 Jan 2006 09:01:36 +0000 Subject: fixed a few more playlist functions... cleaned up some code... --- playlist.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'playlist.php') diff --git a/playlist.php b/playlist.php index 975e2ec8..02b64665 100644 --- a/playlist.php +++ b/playlist.php @@ -54,7 +54,7 @@ switch ($action) { /* Show Confirmation Question */ $message = _('Are you sure you want to delete this playlist') . " " . $playlist->name . "?"; - show_confirm_action(_('Confirm Delete Request'),$message,'playlist.php','action=delete_playlist&playlist_id=' . $playlist->id); + show_confirm_action($message,'playlist.php','action=delete_playlist&playlist_id=' . $playlist->id); break; case 'add_to': case 'add to': @@ -74,12 +74,11 @@ switch ($action) { if ($GLOBALS['user']->username != $playlist->user && !$GLOBALS['user']->has_access(100)) { access_denied(); } - if ($_REQUEST['type'] == 'album') { $song_ids = get_songs_from_type($_REQUEST['type'],$_REQUEST['song_ids'],$_REQUEST['artist_id']); } else { - $song_ids = $_REQUEST['song_ids']; + $song_ids = $_REQUEST['song']; } /* Add the songs */ -- cgit