close file after write process

This commit is contained in:
Bjoern Schiessle 2012-07-06 17:09:20 +02:00
parent e91b4bc2ac
commit ca26bcc581

View file

@ -17,6 +17,7 @@ if (!strpos($data, 'BEGIN CERTIFICATE')) {
$pem = "-----BEGIN CERTIFICATE-----\n".$pem."-----END CERTIFICATE-----\n";
$fh = fopen($to, 'w');
fwrite($fh, $pem);
fclose($fh);
}
OC_Mount_Config::createCertificateBundle();