wzh 5 tahun lalu
induk
melakukan
9ebd6ee501
1 mengubah file dengan 2 tambahan dan 2 penghapusan
  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;