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
parent c75fbf8a83
commit 0d39079c99
No known key found for this signature in database
GPG key ID: A061B9DDE0CA0773

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>