don't throw errors if certificate folder doesn't exist

This commit is contained in:
Robin Appelman 2012-10-12 14:52:22 +02:00
parent d6456fd1a6
commit c099545b6d
1 changed files with 7 additions and 4 deletions

View File

@ -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;
}