fixed Undefined variable

This commit is contained in:
kjh
2022-05-24 08:48:51 +00:00
parent b591c91c99
commit 3aee9326d7
8 changed files with 24 additions and 15 deletions

View File

@ -74,13 +74,13 @@ for ($i = 1; $i <= $num_rows; $i++) {
switch ($ext) {
case '.csv' :
$name = $csv[$i][0];
$name = isset($csv[$i][0]) ? $csv[$i][0] : '';
$str_encode = @mb_detect_encoding($name, $encode);
if( $str_encode == "EUC-KR" ){
$name = iconv_utf8( $name );
}
$name = addslashes($name);
$hp = addslashes($csv[$i][1]);
$hp = addslashes(isset($csv[$i][1]) ? $csv[$i][1] : '');
break;
case '.xls' :
case '.xlsx' :

View File

@ -1,4 +1,5 @@
<?php
$sub_menu = "900800";
include_once('./_common.php');
auth_check_menu($auth, $sub_menu, "r");