issue 740 check enviroment for use sftp function

git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@9972 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
ovclas 2011-12-21 09:08:19 +00:00
parent 1ba2d35a75
commit 77b5d75c4d
4 changed files with 11 additions and 4 deletions

View file

@ -61,6 +61,10 @@
if($ftp_info->sftp == 'Y')
{
if(!function_exists(ssh2_sftp))
{
return new Object(-1,'disable_sftp_support');
}
return $this->getSFTPList();
}