Commit b7f61727 authored by Ad Schellevis's avatar Ad Schellevis
parent cd4b9588
...@@ -143,7 +143,7 @@ function update_alias_names_upon_change($section, $field, $new_alias_name, $orig ...@@ -143,7 +143,7 @@ function update_alias_names_upon_change($section, $field, $new_alias_name, $orig
global $config; global $config;
if (!empty($origname) && !empty($new_alias_name)) { if (!empty($origname) && !empty($new_alias_name)) {
// find section, return if not found // find section, return if not found
$sectionref = &$config; $sectionref = &config_read_array();
foreach ($section as $sectionname) { foreach ($section as $sectionname) {
if (!empty($sectionref[$sectionname]) && is_array($sectionref[$sectionname])) { if (!empty($sectionref[$sectionname]) && is_array($sectionref[$sectionname])) {
$sectionref = &$sectionref[$sectionname]; $sectionref = &$sectionref[$sectionname];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment