Skip to content

Commit 4403432

Browse files
committed
fixes agriya#1 : Unwanted code has removed.
1 parent 11ed24b commit 4403432

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

app/Config/cms_bootstrap.php

-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,6 @@ function _pluginBuilder($plugin){
8080
$pluginName = Inflector::camelize($plugin);
8181
if (!file_exists(APP . 'Plugin' . DS . $pluginName)) {
8282
CakeLog::write(LOG_ERR, 'Plugin not found during bootstrap: ' . $pluginName);
83-
continue;
8483
}
8584
$bootstrapFile = APP . 'Plugin' . DS . $pluginName . DS . 'Config' . DS . 'bootstrap.php';
8685
$bootstrap = file_exists($bootstrapFile);

app/Plugin/Items/Controller/ItemsController.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -2385,7 +2385,7 @@ public function add($request = null, $request_id = null)
23852385
$check_price = true;
23862386
$check_price_type = true;
23872387
if(isset($custom_price_pre_night['id']) && !isset($custom_price_pre_night['start_date'])) {
2388-
continue;
2388+
23892389
}
23902390
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']))) {
23912391
if (!empty($this->request->data['Item']['is_sell_ticket']) && !empty($this->request->data['CustomPricePerNight']['SellTicket'])) {

0 commit comments

Comments
 (0)