fix views songs 7/?

This commit is contained in:
Vincent
2024-06-05 01:46:16 +02:00
parent 15d2336edf
commit d768ba9973
2 changed files with 8 additions and 7 deletions

View File

@@ -163,15 +163,15 @@ class Model_music extends CI_Model {
// Get album details for the song
$this->db->select('album.id as albumId, album.name as albumName, album.year');
$this->db->from('album');
$this->db->join('track', 'track.albumid = album.id');
$this->db->where('track.songid', $songId);
$this->db->join('track', 'track.albumId = album.id');
$this->db->where('track.songId', $songId);
$albumQuery = $this->db->get();
$albumDetails = $albumQuery->row();
// Get artist details for the album
$this->db->select('artist.id as artistId, artist.name as artistName');
$this->db->from('artist');
$this->db->join('album', 'album.artistid = artist.id');
$this->db->join('album', 'album.artistId = artist.id');
$this->db->where('album.id', $albumDetails->albumId);
$artistQuery = $this->db->get();
$artistDetails = $artistQuery->row();
@@ -182,6 +182,7 @@ class Model_music extends CI_Model {
// Suppression de la deuxième méthode researchtype