When assigning the array back to $config, use the pointer on the source.

This commit is contained in:
Scott Ullrich 2005-03-12 19:05:44 +00:00
parent f8891a0f14
commit aaae6e26ff

View File

@ -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();