From ebe227967e3ac42a8eacae14a56d1ad920e333d9 Mon Sep 17 00:00:00 2001 From: Manuel Hiebel Date: Sat, 3 Apr 2021 09:31:07 +0200 Subject: Append file, don't empt it before use --- lib/lib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)) { -- cgit v1.2.1