mirror of
https://github.com/billz/raspap-webgui.git
synced 2023-10-10 13:37:24 +02:00
Update write_php_ini
This commit is contained in:
parent
fc2375ab18
commit
1008f83cc4
@ -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))) {
|
||||
|
Loading…
Reference in New Issue
Block a user