PHP8에서 경고문이 뜨는 코드 수정

This commit is contained in:
thisgun
2021-01-14 11:34:37 +09:00
parent e873436d59
commit 66c6e9b8aa
10 changed files with 34 additions and 31 deletions

View File

@ -20,7 +20,7 @@ if( ! $p_req_url || !preg_match('/^https\:\/\//i', $p_req_url)){
$sql = " select * from {$g5['g5_shop_order_data_table']} where od_id = '$oid' ";
$row = sql_fetch($sql);
$data = unserialize(base64_decode($row['dt_data']));
$data = isset($row['dt_data']) ? unserialize(base64_decode($row['dt_data'])) : array();
if(isset($data['pp_id']) && $data['pp_id']) {
$order_action_url = G5_HTTPS_MSHOP_URL.'/personalpayformupdate.php';

View File

@ -232,7 +232,7 @@ if($enc_data != '' && $enc_info != '' && $tran_cd != '') {
$sql = " select * from {$g5['g5_shop_order_data_table']} where od_id = '$ordr_idxx' ";
$row = sql_fetch($sql);
$data = unserialize(base64_decode($row['dt_data']));
$data = isset($row['dt_data']) ? unserialize(base64_decode($row['dt_data'])) : array();
if(isset($data['pp_id']) && $data['pp_id']) {
$order_action_url = G5_HTTPS_MSHOP_URL.'/personalpayformupdate.php';

View File

@ -25,7 +25,7 @@ $LGD_OID = $payReqMap['LGD_OID'];
$sql = " select * from {$g5['g5_shop_order_data_table']} where od_id = '$LGD_OID' ";
$row = sql_fetch($sql);
$data = unserialize(base64_decode($row['dt_data']));
$data = isset($row['dt_data']) ? unserialize(base64_decode($row['dt_data'])) : array();
if(isset($data['pp_id']) && $data['pp_id']) {
$order_action_url = G5_HTTPS_MSHOP_URL.'/personalpayformupdate.php';

View File

@ -344,6 +344,7 @@ if ($od_settle_case == "무통장")
$od_status = '입금';
$od_receipt_time = G5_TIME_YMDHIS;
}
$tno = $od_receipt_time = $od_app_no = '';
}
else if ($od_settle_case == "계좌이체")
{
@ -395,6 +396,7 @@ else if ($od_settle_case == "가상계좌")
$od_deposit_name = $depositor;
$pg_price = $amount;
$od_misu = $i_price - $od_receipt_price;
$od_receipt_time = '';
}
else if ($od_settle_case == "휴대폰")
{