diff options
Diffstat (limited to 'apps')
-rw-r--r-- | apps/files_external/lib/sftp.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/apps/files_external/lib/sftp.php b/apps/files_external/lib/sftp.php index f7f329b8993..1db8dc42663 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(){ |