chg: [instance:settings] Display section name regardless of its number of child

pull/72/head
mokaddem 2021-09-28 09:26:24 +02:00
parent 20a7903573
commit 9398a2f555
1 changed files with 1 additions and 3 deletions

View File

@ -100,9 +100,7 @@ function genSection($sectionName, $subSectionSettings, $appView)
]);
$sectionContent[] = $panelHTML;
} else {
if (count($subSectionSettings) > 1) {
$sectionContent[] = sprintf('<h2 id="%s">%s</h2>', getResolvableID($sectionName), h($sectionName));
}
$sectionContent[] = sprintf('<h2 id="%s">%s</h2>', getResolvableID($sectionName), h($sectionName));
foreach ($subSectionSettings as $panelName => $panelSettings) {
if (!empty($panelSettings)) {
$panelHTML = $appView->element('Settings/panel', [