Skip to content

Commit

Permalink
Merge pull request #207 from nobuhiko/fix#118
Browse files Browse the repository at this point in the history
fix #117 #118 del_flg = 0 を追加
  • Loading branch information
kiy0taka committed Aug 2, 2018
2 parents 29d6a1d + c2611a6 commit 60c99cc
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions data/class/helper/SC_Helper_Customer.php
Original file line number Diff line number Diff line change
Expand Up @@ -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];

// 確認項目に複製
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 60c99cc

Please sign in to comment.