From 3f9b422f5fbf68b9cbd2abe106391cee6d39b1ce Mon Sep 17 00:00:00 2001 From: billz Date: Tue, 30 Apr 2019 22:57:12 +0000 Subject: [PATCH] Update safefilerewrite with PHP_EOL --- includes/functions.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/functions.php b/includes/functions.php index 5c759a55..64b66f15 100755 --- a/includes/functions.php +++ b/includes/functions.php @@ -17,7 +17,7 @@ function write_php_ini($array, $file) if (is_array($val)) { $res[] = "[$key]"; foreach ($val as $skey => $sval) { - $res[] = "$skey = $val"; + $res[] = "$skey = $sval"; } } else { $res[] = "$key = $val"; @@ -44,7 +44,7 @@ function safefilerewrite($fileName, $dataToSave) //file was locked so now we can store information if ($canWrite) { - fwrite($fp, $dataToSave); + fwrite($fp, $dataToSave.PHP_EOL); flock($fp, LOCK_UN); } fclose($fp);