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 "예약시간이 잘못되었습니다"; } }