diff options
author | Vincent Petry <pvince81@owncloud.com> | 2014-08-28 17:09:36 +0200 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2014-08-28 17:09:36 +0200 |
commit | f4e6cd5f3ec7725900c7ef08092b1d673f302349 (patch) | |
tree | 4d81160817318a6943b88e943860cdbefb467d90 /apps/files_external | |
parent | 31bb85654e68f41a820033e6fa7eb4769b093e61 (diff) | |
parent | 87167d314107c63b7d9129b40d333d5f8408c36e (diff) | |
download | nextcloud-server-f4e6cd5f3ec7725900c7ef08092b1d673f302349.tar.gz nextcloud-server-f4e6cd5f3ec7725900c7ef08092b1d673f302349.zip |
Merge pull request #10658 from owncloud/sftp_prevent_error
Prevent errors on broken SFTP config
Diffstat (limited to 'apps/files_external')
-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(); |