summaryrefslogtreecommitdiffstats
path: root/apps/files_external
diff options
context:
space:
mode:
authorLennart Rosam <lennart.rosam@medien-systempartner.de>2013-08-30 12:10:10 +0200
committerMorris Jobke <morris.jobke@gmail.com>2013-10-07 01:08:38 +0200
commitb9a948b597d3dc4ee74f4b179cbd41040e5c31bf (patch)
treec7f093b239afa63452004d3bbc027417286ccb35 /apps/files_external
parent1537410a31e5303207a612f1c0c4b42350ccb4ef (diff)
downloadnextcloud-server-b9a948b597d3dc4ee74f4b179cbd41040e5c31bf.tar.gz
nextcloud-server-b9a948b597d3dc4ee74f4b179cbd41040e5c31bf.zip
Fixes #4129
Diffstat (limited to 'apps/files_external')
-rw-r--r--apps/files_external/lib/sftp.php5
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(){