This commit is contained in:
Lennart Rosam 2013-08-30 12:10:10 +02:00 committed by Morris Jobke
parent 1537410a31
commit b9a948b597

View file

@ -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(){