#19160050 Fixed : 관리자 설정에서 FTP 포트 정보 미입력시 목록을 못 가져오는 문제

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@7729 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
taggon 2010-09-28 19:37:14 +00:00
parent 283fe0e9d2
commit 52051eba00

View file

@ -46,12 +46,19 @@
{
return new Object(-1, 'msg_ftp_invalid_auth_info');
}
$this->pwd = $ftp_info->ftp_root_path;
if(!$ftp_info->ftp_host)
{
$ftp_info->ftp_host = "127.0.0.1";
}
if (!$ftp_info->ftp_port)
{
$ftp_info->ftp_port = "21";
}
if($ftp_info->sftp == 'Y')
{
return $this->getSFTPList();