Fixes #4129
This commit is contained in:
parent
1537410a31
commit
b9a948b597
1 changed files with 3 additions and 2 deletions
|
@ -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(){
|
||||
|
|
Loading…
Reference in a new issue