summaryrefslogtreecommitdiffstats
path: root/apps/files_external
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2014-08-28 17:09:36 +0200
committerVincent Petry <pvince81@owncloud.com>2014-08-28 17:09:36 +0200
commitf4e6cd5f3ec7725900c7ef08092b1d673f302349 (patch)
tree4d81160817318a6943b88e943860cdbefb467d90 /apps/files_external
parent31bb85654e68f41a820033e6fa7eb4769b093e61 (diff)
parent87167d314107c63b7d9129b40d333d5f8408c36e (diff)
downloadnextcloud-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.php3
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();