Skip to content

Commit 6862ed4

Browse files
tcitworldblizzz
authored andcommitted
fix(settings): check if activeSectionId and activeSectionType are defined before using them
Closes #41513 Signed-off-by: Thomas Citharel <[email protected]>
1 parent 9034cc2 commit 6862ed4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/settings/templates/settings/frame.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,6 @@
8484
</ul>
8585
</nav>
8686
</div>
87-
<div id="app-content" data-active-section-id="<?php print_unescaped($_['activeSectionId']) ?>" data-active-section-type="<?php print_unescaped($_['activeSectionType']) ?>">
87+
<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 } ?>>
8888
<?php print_unescaped($_['content']); ?>
8989
</div>

0 commit comments

Comments
 (0)