Commit 4685a91b authored by Ad Schellevis's avatar Ad Schellevis

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

parent fd1bc27f
......@@ -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");
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment