상품삭제시 발생할 수 있는 오류 수정
This commit is contained in:
@ -117,6 +117,9 @@ function itemdelete($it_id)
|
|||||||
// 디렉토리내 파일 리스트 배열로 얻기
|
// 디렉토리내 파일 리스트 배열로 얻기
|
||||||
function scan_dir($path)
|
function scan_dir($path)
|
||||||
{
|
{
|
||||||
|
if(!is_dir($path))
|
||||||
|
return;
|
||||||
|
|
||||||
$dir = opendir($path);
|
$dir = opendir($path);
|
||||||
while (false !== ($filename = readdir($dir))) {
|
while (false !== ($filename = readdir($dir))) {
|
||||||
if($filename == "." || $filename == "..")
|
if($filename == "." || $filename == "..")
|
||||||
|
|||||||
Reference in New Issue
Block a user