From 767c3c55621b436cd9df4aea148335e50b713295 Mon Sep 17 00:00:00 2001 From: kit rio Date: Wed, 25 May 2022 18:34:52 +0900 Subject: [PATCH] =?UTF-8?q?PHP=208.0=20undefined=20variable=20=EC=98=A4?= =?UTF-8?q?=EB=A5=98=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit uri.lib.php 에서 uri.class.php 사용하지않고 있음. --- lib/PHPExcel/Calculation/Statistical.php | 4 ++-- lib/icode.lms.lib.php | 2 +- lib/shop.uri.lib.php | 2 +- lib/uri.lib.php | 2 -- plugin/lgxpay/lgdacom/XPayClient.php | 2 +- plugin/sms5/sms5.lib.php | 2 +- 6 files changed, 6 insertions(+), 8 deletions(-) diff --git a/lib/PHPExcel/Calculation/Statistical.php b/lib/PHPExcel/Calculation/Statistical.php index 1a33610fc..fe6a15063 100644 --- a/lib/PHPExcel/Calculation/Statistical.php +++ b/lib/PHPExcel/Calculation/Statistical.php @@ -346,7 +346,7 @@ class PHPExcel_Calculation_Statistical $y = $x; if ($y > 0.0 && $y <= LOG_GAMMA_X_MAX_VALUE) { if ($y <= EPS) { - $res = -log(y); + $res = -log($y); } elseif ($y <= 1.5) { // --------------------- // EPS .LT. X .LE. 1.5 @@ -677,7 +677,7 @@ class PHPExcel_Calculation_Statistical $q = $p - 0.5; // computation for p close to 0.5 - if (abs($q) <= split1) { + if (abs($q) <= $split1) { $R = $const1 - $q * $q; $z = $q * ((((((($a7 * $R + $a6) * $R + $a5) * $R + $a4) * $R + $a3) * $R + $a2) * $R + $a1) * $R + $a0) / ((((((($b7 * $R + $b6) * $R + $b5) * $R + $b4) * $R + $b3) * $R + $b2) * $R + $b1) * $R + 1); diff --git a/lib/icode.lms.lib.php b/lib/icode.lms.lib.php index 7a7009eba..2d27c800e 100644 --- a/lib/icode.lms.lib.php +++ b/lib/icode.lms.lib.php @@ -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 "예약날짜오류"; diff --git a/lib/shop.uri.lib.php b/lib/shop.uri.lib.php index 3e46838d6..6b229b079 100644 --- a/lib/shop.uri.lib.php +++ b/lib/shop.uri.lib.php @@ -138,7 +138,7 @@ function shop_short_url_clean($string_url, $url, $page_name, $array_page_names){ $add_param = '?'.http_build_query($result,'','&'); } - if( $add_qry ){ + if( isset($add_qry) ){ $add_param .= $add_param ? '&'.$add_qry : '?'.$add_qry; } diff --git a/lib/uri.lib.php b/lib/uri.lib.php index e1443ea8c..3573d8fac 100644 --- a/lib/uri.lib.php +++ b/lib/uri.lib.php @@ -1,8 +1,6 @@ 23 || substr($strDate,10,2)>59) return "예약시간이 잘못되었습니다"; } }