From b9a948b597d3dc4ee74f4b179cbd41040e5c31bf Mon Sep 17 00:00:00 2001
From: Lennart Rosam <lennart.rosam@medien-systempartner.de>
Date: Fri, 30 Aug 2013 12:10:10 +0200
Subject: [PATCH] Fixes #4129

---
 apps/files_external/lib/sftp.php | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/apps/files_external/lib/sftp.php b/apps/files_external/lib/sftp.php
index f7f329b899..1db8dc4266 100644
--- a/apps/files_external/lib/sftp.php
+++ b/apps/files_external/lib/sftp.php
@@ -53,9 +53,10 @@ class SFTP extends \OC\Files\Storage\Common {
 	}
 
 	public function test() {
-		if (!isset($params['host']) || !isset($params['user']) || !isset($params['password'])) {
-			throw new \Exception("Required parameters not set");
+		if (!isset($this->host) || !isset($this->user) || !isset($this->password)) {
+			return false;
 		}
+    return true;
 	}
 
 	public function getId(){
-- 
GitLab