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

Closes #41513

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
pull/42590/head
Thomas Citharel 3 years ago
parent c75fbf8a83
commit 0d39079c99
No known key found for this signature in database
GPG Key ID: A061B9DDE0CA0773
  1. 2
      apps/settings/templates/settings/frame.php

@ -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>

Loading…
Cancel
Save