PHP8에서 경고문이 뜨는 코드 수정
This commit is contained in:
@ -16,7 +16,7 @@ try {
|
||||
//#####################
|
||||
// 인증이 성공일 경우만
|
||||
//#####################
|
||||
if (strcmp('0000', $_REQUEST['resultCode']) == 0) {
|
||||
if (isset($_REQUEST['resultCode']) && strcmp('0000', $_REQUEST['resultCode']) == 0) {
|
||||
|
||||
//############################################
|
||||
// 1.전문 필드 값 설정(***가맹점 개발수정***)
|
||||
@ -100,13 +100,13 @@ try {
|
||||
$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']) {
|
||||
$page_return_url = G5_SHOP_URL.'/personalpayform.php?pp_id='.$data['pp_id'];
|
||||
} else {
|
||||
$page_return_url = G5_SHOP_URL.'/orderform.php';
|
||||
if($_SESSION['ss_direct'])
|
||||
if(get_session('ss_direct'))
|
||||
$page_return_url .= '?sw_direct=1';
|
||||
}
|
||||
|
||||
@ -124,9 +124,9 @@ try {
|
||||
$app_time = $resultMap['applDate'].$resultMap['applTime'];
|
||||
$pay_method = $resultMap['payMethod'];
|
||||
$pay_type = $PAY_METHOD[$pay_method];
|
||||
$depositor = $resultMap['VACT_InputName'];
|
||||
$depositor = isset($resultMap['VACT_InputName']) ? $resultMap['VACT_InputName'] : '';
|
||||
$commid = '';
|
||||
$mobile_no = $resultMap['HPP_Num'];
|
||||
$mobile_no = isset($resultMap['HPP_Num']) ? $resultMap['HPP_Num'] : '';
|
||||
$app_no = $resultMap['applNum'];
|
||||
$card_name = $CARD_CODE[$resultMap['CARD_Code']];
|
||||
switch($pay_type) {
|
||||
|
||||
Reference in New Issue
Block a user