mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-15 09:04:39 +00:00
missed an fclose in config, no real issue but not very nice...
This commit is contained in:
parent
fd1bc27f8b
commit
4685a91bbf
@ -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");
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user