Skip to content
Snippets Groups Projects
Commit b9a948b5 authored by Lennart Rosam's avatar Lennart Rosam Committed by Morris Jobke
Browse files

Fixes #4129

parent 1537410a
No related branches found
No related tags found
No related merge requests found
...@@ -53,9 +53,10 @@ class SFTP extends \OC\Files\Storage\Common { ...@@ -53,9 +53,10 @@ class SFTP extends \OC\Files\Storage\Common {
} }
public function test() { public function test() {
if (!isset($params['host']) || !isset($params['user']) || !isset($params['password'])) { if (!isset($this->host) || !isset($this->user) || !isset($this->password)) {
throw new \Exception("Required parameters not set"); return false;
} }
return true;
} }
public function getId(){ public function getId(){
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment