diff --git a/Controller/Admin/ConfigController.php b/Controller/Admin/ConfigController.php index eb2afc2..a8d3258 100644 --- a/Controller/Admin/ConfigController.php +++ b/Controller/Admin/ConfigController.php @@ -1339,7 +1339,9 @@ private function saveToO($em, $tmpDir, $csvName, $tableName = null, $allow_zero $value['delivery_id'] = !empty($this->delivery_id[$value['order_id']]) ? $this->delivery_id[$value['order_id']] : null; $value['delivery_time'] = empty($data['time']) ? null : $data['time']; if (isset($data['time_id']) && strlen($data['time_id']) > 0) { - $value['time_id'] = $this->delivery_time[$value['delivery_id']][$data['time_id']]; + if (!empty($this->delivery_time)) { + $value['time_id'] = $this->delivery_time[$value['delivery_id']][$data['time_id']]; + } } // dtb_shipping.shipping_commit_dateが空の場合は、dtb_order.commit_dateを使用 if (!empty($data['shipping_commit_date'])) {