cars
This commit is contained in:
@@ -47,10 +47,10 @@ class Auto_brand_model extends HD_Model
|
||||
*/
|
||||
public function map_brand($where=array(), $map=true){
|
||||
if ($map){
|
||||
$map_brand = $this->map('id', 'name', $where, 'status desc, id asc', 0 , 0, 'id, name');
|
||||
$map_brand = $this->map('id', 'name', $where, 'initial asc', 0 , 0, 'id, name');
|
||||
}
|
||||
else{
|
||||
$map_brand = $this->select($where, "status desc, id asc", 0, 0, 'id, name');
|
||||
$map_brand = $this->select($where, "initial asc", 0, 0, 'id, name');
|
||||
}
|
||||
return $map_brand;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user