problème résolu

This commit is contained in:
2024-06-17 21:06:19 +02:00
parent 4258186b14
commit 0b4dde90ac
10 changed files with 37 additions and 48 deletions

View File

@@ -66,7 +66,6 @@ class Albums extends CI_Controller {
$this->load->view('layout/footer');
}else{
$playlistId = $this->input->post('playlist_id');
$page = $this->input->get('page');
$this->model_music->AddAlbumtoPlaylist($playlistId,$id);
redirect('albums');
}

View File

@@ -14,7 +14,6 @@ class Artistes extends CI_Controller {
$order = $this->input->get('order');
if ($recherche=filter_input(INPUT_GET,'recherche') == false or $recherche=filter_input(INPUT_GET,'recherche') == null){
$artistes = $this->model_music->getArtistes();
$artistes = $this->model_music->get_filtered_artistes($genre, $sort, $order);
$data['artistes'] = $artistes;
}else{
@@ -26,7 +25,6 @@ class Artistes extends CI_Controller {
if ($artistes == false){
$page = preg_split('/[\/]/',$_SERVER['REQUEST_URI']);
$this->load->view('error',['page'=>$page[count($page)-1]]);
$artistes = $this->model_music->getArtistes();
$artistes = $this->model_music->get_filtered_artistes($genre, $sort, $order);
$data['artistes'] = $artistes;
}