issue 839, added message for an environment that does not support sftp.

git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@10333 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
flyskyko 2012-03-06 05:34:54 +00:00
parent 5e075dac43
commit 700a62d01c
2 changed files with 9 additions and 1 deletions

View file

@ -188,6 +188,11 @@
}
function _connect() {
if(!function_exists('ssh2_connect'))
{
return new Object(-1, 'msg_sftp_not_supported');
}
if(!$this->ftp_info->ftp_user || !$this->ftp_info->sftp || $this->ftp_info->sftp != 'Y') return new Object(-1,'msg_ftp_invalid_auth_info');
if($this->ftp_info->ftp_host)