]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fixes #4129
authorLennart Rosam <lennart.rosam@medien-systempartner.de>
Fri, 30 Aug 2013 10:10:10 +0000 (12:10 +0200)
committerMorris Jobke <morris.jobke@gmail.com>
Sun, 6 Oct 2013 23:08:38 +0000 (01:08 +0200)
apps/files_external/lib/sftp.php

index f7f329b8993783ec29b70fd07cd140c2e17217a6..1db8dc42663e3d8fe30a41033c553f4c7ec36131 100644 (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(){