mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
When assigning the array back to $config, use the pointer on the source.
This commit is contained in:
parent
f8891a0f14
commit
aaae6e26ff
@ -749,7 +749,7 @@ function restore_config_section($section, $new_contents) {
|
||||
global $config;
|
||||
conf_mount_rw();
|
||||
config_lock();
|
||||
&$config[$section] = $new_contents;
|
||||
$config[$section] = &$new_contents;
|
||||
write_config();
|
||||
conf_mount_ro();
|
||||
config_unlock();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user