diff --git a/backstage/application/api/controllers/api/Applet.php b/backstage/application/api/controllers/api/Applet.php index 15d08a0..1052830 100644 --- a/backstage/application/api/controllers/api/Applet.php +++ b/backstage/application/api/controllers/api/Applet.php @@ -158,7 +158,7 @@ class Applet extends REST_Controller { $dining_hall_info = $this->Common_model->sql_get_one("select * from tb_dining_hall where enabled=1 and id='{$this->user->dining_hall_id}' and company_id='{$this->user->company_id}'"); $this->user->dining_hall_name = $dining_hall_info['name']; - $moreFunction = $this->Common_model->sql_get_all("select * from tb_company_extra_menus where cid={$this->user->company_id} and enabled=1 and is_applet=1 order by idx desc, id asc"); + $moreFunction = $this->Common_model->sql_get_all("select * from tb_company_extra_menus where cid={$this->user->company_id} and is_applet=1 order by idx desc, id asc"); if(!empty($moreFunction)){ foreach ($moreFunction as $k => $v){ // unset($moreFunction[$k]['id']);