@@ -82,9 +82,8 @@ class Company extends Base_Controller {
$where = array();
$type = intval($this->input->post('type',true));
- if (empty($type)) exit(json_result('0007',$this->response['0007']));
- $where['type'] = $type;
+ if (!empty($type)) $where['type'] = $type;
$list = $this->Company_model->get_list($where, 'id,name',null, null, 'name asc,id desc', NUll);