From 9e36140660338d3d581728042c2910539a3670b9 Mon Sep 17 00:00:00 2001 From: haneul Date: Fri, 16 Apr 2010 12:48:39 +0000 Subject: [PATCH] #18816141 : skip warning from ftp_login and return error properly git-svn-id: http://xe-core.googlecode.com/svn/sandbox@7372 201d5d3c-b55e-5fd7-737f-ddc643e51545 --- modules/autoinstall/autoinstall.lib.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/modules/autoinstall/autoinstall.lib.php b/modules/autoinstall/autoinstall.lib.php index 2d62099f8..dc729ed98 100644 --- a/modules/autoinstall/autoinstall.lib.php +++ b/modules/autoinstall/autoinstall.lib.php @@ -172,8 +172,7 @@ $connection = ftp_connect($ftp_host, $ftp_info->ftp_port); if(!$connection) return new Object(-1, 'msg_ftp_not_connected'); - - $login_result = ftp_login($connection, $ftp_info->ftp_user, $this->ftp_password); + $login_result = @ftp_login($connection, $ftp_info->ftp_user, $this->ftp_password); if(!$login_result) { return new Object(-1,'msg_ftp_invalid_auth_info');