Update write_php_ini

This commit is contained in:
billz 2019-04-30 22:36:35 +00:00
parent fc2375ab18
commit 1008f83cc4

View file

@ -17,10 +17,10 @@ function write_php_ini($array, $file)
if (is_array($val)) {
$res[] = "[$key]";
foreach ($val as $skey => $sval) {
$res[] = "$skey = ".(is_numeric($sval) ? $sval : '"'.$sval.'"');
$res[] = "$skey = $val";
}
} else {
$res[] = "$key = ".(is_numeric($val) ? $val : '"'.$val.'"');
$res[] = "$key = $val";
}
}
if (safefilerewrite($file, implode(PHP_EOL, $res))) {