From c2611a62eb8045c383cb9eb3a9d9218b46293fd5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=81=AE=E3=81=B6?= Date: Tue, 31 Jul 2018 20:39:07 +0900 Subject: [PATCH] =?UTF-8?q?fix=20#117=20#118=20del=5Fflg=20=3D=200=20?= =?UTF-8?q?=E3=82=92=E8=BF=BD=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- data/class/helper/SC_Helper_Customer.php | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/data/class/helper/SC_Helper_Customer.php b/data/class/helper/SC_Helper_Customer.php index 2eda842e48..09b03eb270 100644 --- a/data/class/helper/SC_Helper_Customer.php +++ b/data/class/helper/SC_Helper_Customer.php @@ -238,7 +238,12 @@ public function sfGetCustomerData($customer_id, $mask_flg = true) $objQuery = SC_Query_Ex::getSingletonInstance(); // 会員情報DB取得 - $ret = $objQuery->select('*', 'dtb_customer', 'customer_id=?', array($customer_id)); + $ret = $objQuery->select('*', 'dtb_customer', 'customer_id=? AND del_flg = 0', array($customer_id)); + + if (empty($ret)) { + trigger_error('存在しない会員IDです。', E_USER_ERROR); + } + $arrForm = $ret[0]; // 確認項目に複製 @@ -276,7 +281,7 @@ public function sfGetCustomerDataFromId($customer_id, $add_where = '', $arrAddVa $objQuery = SC_Query_Ex::getSingletonInstance(); if ($add_where == '') { - $where = 'customer_id = ?'; + $where = 'customer_id = ? AND del_flg = 0'; $arrData = $objQuery->getRow('*', 'dtb_customer', $where, array($customer_id)); } else { $where = $add_where;