fix(settings): check if activeSectionId and activeSectionType are defined before using them

Closes #41513

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel 2024-01-05 10:06:28 +01:00 committed by Arthur Schiwon
parent 9034cc2e6f
commit 6862ed49ba

View file

@ -84,6 +84,6 @@ script('files', 'jquery.fileupload');
</ul>
</nav>
</div>
<div id="app-content" data-active-section-id="<?php print_unescaped($_['activeSectionId']) ?>" data-active-section-type="<?php print_unescaped($_['activeSectionType']) ?>">
<div id="app-content" <?php if (!empty($_['activeSectionId'])) { ?> data-active-section-id="<?php print_unescaped($_['activeSectionId']) ?>" <?php } if (!empty($_['activeSectionType'])) { ?> data-active-section-type="<?php print_unescaped($_['activeSectionType']) ?>" <?php } ?>>
<?php print_unescaped($_['content']); ?>
</div>