* code for task #44938.

This commit is contained in:
王怡栋
2021-11-25 11:35:46 +08:00
parent 49bff6df49
commit 385cb41a0e
3 changed files with 53 additions and 7 deletions

View File

@@ -117,7 +117,12 @@ class router extends baseRouter
unset($lang->{$moduleName}->{$section});
if(isset($nullKey))$lang->{$moduleName}->{$section}[$nullKey] = $nullValue;
foreach($fields as $key => $value) $lang->{$moduleName}->{$section}[$key] = $value;
foreach($fields as $key => $value)
{
if(!isset($lang->{$moduleName})) $lang->{$moduleName} = new stdclass();
if(!isset($lang->{$moduleName}->{$section})) $lang->{$moduleName}->{$section} = array();
$lang->{$moduleName}->{$section}[$key] = $value;
}
unset($nullKey);
unset($nullValue);
}