ajout filtre et tri pour chansons
This commit is contained in:
@@ -83,7 +83,7 @@ class Model_music extends CI_Model {
|
||||
if (!empty($album)) {
|
||||
$this->db->where_in('album.name', $album);
|
||||
}
|
||||
if ($sort && in_array($sort, ['year', 'artistName', 'name', 'genreName'])) {
|
||||
if ($sort && in_array($sort, ['year', 'artistName', 'name', 'albumName', 'genreName'])) {
|
||||
$this->db->order_by($sort, $order);
|
||||
}
|
||||
$query = $this->db->get();
|
||||
|
||||
Reference in New Issue
Block a user