Skip to content

Commit

Permalink
fix(settings): check if activeSectionId and activeSectionType are def…
Browse files Browse the repository at this point in the history
…ined before using them

Closes #41513

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
  • Loading branch information
tcitworld authored and blizzz committed Jan 17, 2024
1 parent 9034cc2 commit 6862ed4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/settings/templates/settings/frame.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,6 @@
</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>

0 comments on commit 6862ed4

Please sign in to comment.