resolution bug
This commit is contained in:
@@ -312,7 +312,7 @@ class Model_music extends CI_Model {
|
||||
return $query = false;
|
||||
}
|
||||
|
||||
public function getPlaylistIdSong($id){
|
||||
public function getPlaylistIdSong($id,$iduser){
|
||||
$result = $this->model_music->TrackidSonginPlaylist($id);
|
||||
|
||||
$track = $result->row();
|
||||
@@ -322,6 +322,7 @@ class Model_music extends CI_Model {
|
||||
$this->db->from('Playlist');
|
||||
$this->db->join('PlaylistSong','Playlist.playlistId = PlaylistSong.playlistId');
|
||||
$this->db->where('PlaylistSong.trackId',$trackId);
|
||||
$this->db->where('Playlist.userId',$iduser);
|
||||
$this->db->order_by('Playlist.name','ASC');
|
||||
$query = $this->db->get();
|
||||
return $query->result();
|
||||
|
||||
Reference in New Issue
Block a user