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

@ -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);

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 "예약날짜오류";

View File

@ -138,7 +138,7 @@ function shop_short_url_clean($string_url, $url, $page_name, $array_page_names){
$add_param = '?'.http_build_query($result,'','&amp;');
}
if( $add_qry ){
if( isset($add_qry) ){
$add_param .= $add_param ? '&amp;'.$add_qry : '?'.$add_qry;
}

View File

@ -1,8 +1,6 @@
<?php
if (!defined('_GNUBOARD_')) exit;
include_once(dirname(__FILE__) .'/URI/uri.class.php');
// 짧은 주소 형식으로 만들어서 가져온다.
function get_pretty_url($folder, $no='', $query_string='', $action='')
{

View File

@ -904,7 +904,7 @@ class XPayClient
*/
function StringToHex($MertKey)
{
$szKey;
$szKey = array();
$szMertKey = str_split($MertKey,2);
for ($i = 0 ; $i < 16 ; $i++)
{

View File

@ -242,7 +242,7 @@ if($config['cf_sms_type'] == 'LMS') {
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))) return "예약날짜가 잘못되었습니다";
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 "예약시간이 잘못되었습니다";
}
}