résolution d'un bug

This commit is contained in:
2024-06-17 19:18:08 +02:00
parent d06ea90853
commit 4258186b14
6 changed files with 28 additions and 26 deletions

View File

@@ -50,8 +50,9 @@ class Chansons extends CI_Controller {
$this->load->view('layout/footer');
}else{
$playlistId = $this->input->post('playlist_id');
$url = $this->input->get('page');
$this->model_music->AddSongtoPlaylist($playlistId,$id);
redirect('chansons');
redirect($url);
}
}
@@ -66,8 +67,9 @@ class Chansons extends CI_Controller {
$this->load->view('layout/footer');
}else{
$playlistId = $this->input->post('playlist_id');
$url = $this->input->get('page');
$this->model_music->DeleteSongtoPlaylist($playlistId,$id);
redirect('chansons');
redirect($url);
}
}