mirror of
https://github.com/RaspAP/raspap-webgui.git
synced 2024-11-21 23:20:22 +00:00
Update write_php_ini
This commit is contained in:
parent
fc2375ab18
commit
1008f83cc4
1 changed files with 2 additions and 2 deletions
|
@ -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 a new issue