php8.0 버전 호환 코드 적용 및 PHP 끝 태그 삭제 일괄적용

This commit is contained in:
thisgun
2021-01-04 15:39:15 +09:00
parent 131b170b54
commit 27e9af5e42
1009 changed files with 12120 additions and 10849 deletions

View File

@ -1,7 +1,7 @@
<?php
include_once('./_common.php');
$code = preg_replace('#[^0-9]#', '', $_POST['zipcode']);
$code = isset($_POST['zipcode']) ? preg_replace('#[^0-9]#', '', $_POST['zipcode']) : '';
if(!$code)
die('0');
@ -12,8 +12,7 @@ $sql = " select sc_id, sc_price
and sc_zip2 >= '$code' ";
$row = sql_fetch($sql);
if(!$row['sc_id'])
if(! (isset($row['sc_id']) && $row['sc_id']))
die('0');
die($row['sc_price']);
?>
die($row['sc_price']);