aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2012-10-12 14:52:22 +0200
committerRobin Appelman <icewind@owncloud.com>2012-10-12 14:52:22 +0200
commitc099545b6d15e211742c5af61617d798d0a22aa5 (patch)
treeff410cea0bdf7b7ab30630f6072cfb96c9f08a57
parentd6456fd1a644fd6fb5f2f10d5acd5f6a07b76a43 (diff)
downloadnextcloud-server-c099545b6d15e211742c5af61617d798d0a22aa5.tar.gz
nextcloud-server-c099545b6d15e211742c5af61617d798d0a22aa5.zip
don't throw errors if certificate folder doesn't exist
-rwxr-xr-xapps/files_external/lib/config.php11
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;
}