PHP 8.0 undefined variable 오류 수정

uri.lib.php 에서 uri.class.php 사용하지않고 있음.
This commit is contained in:
kit rio
2022-05-25 18:34:52 +09:00
parent d3d7b9aadc
commit 767c3c5562
6 changed files with 6 additions and 8 deletions

View File

@ -327,7 +327,7 @@ function is_vaild_callback($callback){
function CheckCommonTypeDate($strDate) {
$strDate = preg_replace("/[^0-9]/", "", $strDate);
if ($strDate){
if (!checkdate(substr($strDate,4,2),substr($strDate,6,2),substr($rsvTime,0,4)))
if (!checkdate(substr($strDate,4,2),substr($strDate,6,2),substr($strDate,0,4)))
return "예약날짜오류";
if (substr($strDate,8,2)>23 || substr($strDate,10,2)>59) return false;
return "예약날짜오류";