From 2b79469c2fa97ad82ef03f15a4cddfb5117d7dba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=81=AE=E3=81=B6?= Date: Wed, 2 Sep 2020 14:58:28 +0900 Subject: [PATCH] fixed #45 --- Controller/Admin/ConfigController.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Controller/Admin/ConfigController.php b/Controller/Admin/ConfigController.php index 217dae3..9d71648 100644 --- a/Controller/Admin/ConfigController.php +++ b/Controller/Admin/ConfigController.php @@ -1317,7 +1317,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'])) {