diff options
author | Robin McCorkell <rmccorkell@karoshi.org.uk> | 2014-08-27 09:02:14 +0100 |
---|---|---|
committer | Robin McCorkell <rmccorkell@karoshi.org.uk> | 2014-08-27 09:02:14 +0100 |
commit | 87167d314107c63b7d9129b40d333d5f8408c36e (patch) | |
tree | c2dcc8df82b24f0b979e3a67c7be59ee141b9c92 | |
parent | 3115053bbb3a1ba5d0bb3562bea6b7ef94a09cd0 (diff) | |
download | nextcloud-server-87167d314107c63b7d9129b40d333d5f8408c36e.tar.gz nextcloud-server-87167d314107c63b7d9129b40d333d5f8408c36e.zip |
Prevent errors on broken SFTP config
-rw-r--r-- | apps/files_external/lib/sftp.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/files_external/lib/sftp.php b/apps/files_external/lib/sftp.php index e0655cc8d3d..aec56d088d5 100644 --- a/apps/files_external/lib/sftp.php +++ b/apps/files_external/lib/sftp.php @@ -166,6 +166,9 @@ class SFTP extends \OC\Files\Storage\Common { public function opendir($path) { try { $list = $this->client->nlist($this->absPath($path)); + if ($list === false) { + return false; + } $id = md5('sftp:' . $path); $dirStream = array(); |