diff options
author | Robin Appelman <icewind@owncloud.com> | 2012-10-12 14:52:22 +0200 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2012-10-12 14:53:29 +0200 |
commit | df7e5191596757b99032c0646996c67ad2623502 (patch) | |
tree | fd4a2769fb5f907a199c1a274d68c9328fb3cb50 /apps | |
parent | 5e60812ad40c4188f879abff7dc1dac9bdf7fcf9 (diff) | |
download | nextcloud-server-df7e5191596757b99032c0646996c67ad2623502.tar.gz nextcloud-server-df7e5191596757b99032c0646996c67ad2623502.zip |
don't throw errors if certificate folder doesn't exist
Diffstat (limited to 'apps')
-rwxr-xr-x | apps/files_external/lib/config.php | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/apps/files_external/lib/config.php b/apps/files_external/lib/config.php index f770bfe0756..0a576f06f1f 100755 --- a/apps/files_external/lib/config.php +++ b/apps/files_external/lib/config.php @@ -109,10 +109,10 @@ class OC_Mount_Config { return $personal; } - /**
- * Add directory for mount point to the filesystem
- * @param OC_Fileview instance $view
- * @param string path to mount point
+ /** + * Add directory for mount point to the filesystem + * @param OC_Fileview instance $view + * @param string path to mount point */ private static function addMountPointDirectory($view, $path) { $dir = ''; @@ -288,6 +288,9 @@ class OC_Mount_Config { if (!is_dir($path)) mkdir($path); $result = array(); $handle = opendir($path); + if (!$handle) { + return array(); + } while (false !== ($file = readdir($handle))) { if($file != '.' && $file != '..') $result[] = $file; } |