wzh 5 년 전
부모
커밋
9ebd6ee501
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      api/application/controllers/Company.php

+ 2 - 2
api/application/controllers/Company.php

@@ -16,8 +16,8 @@ class Company extends Base_Controller {
 		$keyword = $this->input->post('keyword',true);
 		$type = $this->input->post('type',true);
 
-		if ($keyword !== '' && $keyword === null) $where['name|'] = $keyword;
-		if ($type !== '' && $type === null) $where['type'] = $type;
+		if ($keyword !== '' && $keyword !== null) $where['name|'] = $keyword;
+		if ($type !== '' && $type !== null) $where['type'] = $type;
 		// 分页数据
         $page = intval($this->input->post('page',true));
         $page = empty($page) ? 1 : $page;