* Fixed the issue of initializing more drop-down language items.

This commit is contained in:
tianshujie
2023-03-06 10:45:12 +08:00
parent f996230e1f
commit 462e737432
2 changed files with 3 additions and 1 deletions
+1 -1
View File
@@ -63,7 +63,7 @@ class customModel extends model
{
$sectionKey = key($sectionArr);
$sectionArr[$section] = $sectionArr;
unset($sectionArr[$sectionKey]);
if($sectionKey != $section) unset($sectionArr[$sectionKey]);
}
if(!empty($sectionArr)) $processedLang[$customLang->module] = array_merge_recursive($processedLang[$customLang->module], $sectionArr);
}