Skip to content

Commit

Permalink
fix #117 #118 del_flg = 0 を追加
Browse files Browse the repository at this point in the history
  • Loading branch information
nobuhiko committed Jul 31, 2018
1 parent b6a3fe7 commit c2611a6
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 c2611a6

Please sign in to comment.