diff --git a/app/Config/cms_bootstrap.php b/app/Config/cms_bootstrap.php index 20cd5f0..ebf8474 100644 --- a/app/Config/cms_bootstrap.php +++ b/app/Config/cms_bootstrap.php @@ -80,7 +80,6 @@ function _pluginBuilder($plugin){ $pluginName = Inflector::camelize($plugin); if (!file_exists(APP . 'Plugin' . DS . $pluginName)) { CakeLog::write(LOG_ERR, 'Plugin not found during bootstrap: ' . $pluginName); - continue; } $bootstrapFile = APP . 'Plugin' . DS . $pluginName . DS . 'Config' . DS . 'bootstrap.php'; $bootstrap = file_exists($bootstrapFile); diff --git a/app/Plugin/Items/Controller/ItemsController.php b/app/Plugin/Items/Controller/ItemsController.php index 34fa689..7763f6a 100644 --- a/app/Plugin/Items/Controller/ItemsController.php +++ b/app/Plugin/Items/Controller/ItemsController.php @@ -2385,7 +2385,7 @@ public function add($request = null, $request_id = null) $check_price = true; $check_price_type = true; if(isset($custom_price_pre_night['id']) && !isset($custom_price_pre_night['start_date'])) { - continue; + } if (!empty($this->request->data['Item']['is_have_definite_time']) && (!empty($this->request->data['Item']['is_people_can_book_my_time']) || !empty($this->request->data['Item']['is_sell_ticket']))) { if (!empty($this->request->data['Item']['is_sell_ticket']) && !empty($this->request->data['CustomPricePerNight']['SellTicket'])) {