fix views songs 7/?
This commit is contained in:
		@@ -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
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user