diff --git a/data/class/pages/shopping/LC_Page_Shopping_Payment.php b/data/class/pages/shopping/LC_Page_Shopping_Payment.php index d0ee7e83af..c87a6a0027 100644 --- a/data/class/pages/shopping/LC_Page_Shopping_Payment.php +++ b/data/class/pages/shopping/LC_Page_Shopping_Payment.php @@ -380,9 +380,9 @@ public function lfRegistData($uniqid, $arrForm, &$objPurchase, $arrPayment) $objDelivery = new SC_Helper_Delivery(); $validDelivery = array_filter($objDelivery->getList($this->cartKey), function ($delivery) use ($arrForm) { - return $arrForm['deliv_id'] != $delivery['deliv_id']; + return $arrForm['deliv_id'] == $delivery['deliv_id']; }); - if (!empty($validDelivery)) { + if (empty($validDelivery)) { trigger_error('無効な配送方法: ' . var_export($arrForm['deliv_id'], true), E_USER_ERROR); }