aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorManuel Hiebel <leuhmanu@mageia.org>2021-04-03 09:31:07 +0200
committerManuel Hiebel <leuhmanu@mageia.org>2021-04-03 09:31:07 +0200
commitebe227967e3ac42a8eacae14a56d1ad920e333d9 (patch)
tree6598952757a1058f9d4e73be47c5d41ff37365f6
parentd87b114571fe5c2aaa43b4e314745092d264a6fb (diff)
downloadfidd-ebe227967e3ac42a8eacae14a56d1ad920e333d9.tar
fidd-ebe227967e3ac42a8eacae14a56d1ad920e333d9.tar.gz
fidd-ebe227967e3ac42a8eacae14a56d1ad920e333d9.tar.bz2
fidd-ebe227967e3ac42a8eacae14a56d1ad920e333d9.tar.xz
fidd-ebe227967e3ac42a8eacae14a56d1ad920e333d9.zip
Append file, don't empt it before use
-rw-r--r--lib/lib.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/lib.php b/lib/lib.php
index 1258bfa..ca532a0 100644
--- a/lib/lib.php
+++ b/lib/lib.php
@@ -78,7 +78,7 @@ function write_ini_file($assoc_arr, $path, $has_sections = FALSE)
}
}
- if (!$handle = fopen($path, 'w')) {
+ if (!$handle = fopen($path, 'a')) {
return false;
}
if (!fwrite($handle, $content)) {