Fix empty title line display

- Add condition to only show description when it's not empty
- Prevent empty description lines from being displayed
- Clean up configuration page by removing empty title lines
- Improve user experience with cleaner interface
This commit is contained in:
Frank Cools 2025-10-07 20:13:20 +02:00
parent f7e90c59b6
commit 8eaf68f544

View File

@ -155,7 +155,9 @@ foreach ($lines_by_section as $section_code => $lines) {
// Section header
print '<div class="titre">' . $section_info['title'] . '</div>';
print '<div class="info">' . $section_info['description'] . '</div>';
if (!empty($section_info['description'])) {
print '<div class="info">' . $section_info['description'] . '</div>';
}
if (isset($section_info['notice']) && !empty($section_info['notice'])) {
print '<div class="info"><strong>Référence:</strong> ' . $section_info['notice'] . '</div>';
}