missed an fclose in config, no real issue but not very nice...

This commit is contained in:
Ad Schellevis 2015-03-31 10:57:42 +02:00
parent fd1bc27f8b
commit 4685a91bbf

View File

@ -470,9 +470,10 @@ class Config extends Singleton
// lock aquired, truncate and write new data
ftruncate($fp, 0);
fwrite($fp, $xml_text);
// flush and unlock
// flush, unlock and close file handler
fflush($fp);
flock($fp, LOCK_UN);
fclose($fp);
} else {
throw new ConfigException("Unable to lock config");
}