diff options
author | Thomas Citharel <tcit@tcit.fr> | 2024-01-05 10:06:28 +0100 |
---|---|---|
committer | Thomas Citharel <tcit@tcit.fr> | 2024-01-05 10:06:28 +0100 |
commit | 0d39079c99d9ae0fbe019b1ffad5fbdbe3bc06f5 (patch) | |
tree | beae688799794e353e55259a4ca8f6bb4c7d48fe /apps/settings | |
parent | c75fbf8a83e567e6a1789bab35e7bc6f7eabaeaf (diff) | |
download | nextcloud-server-0d39079c99d9ae0fbe019b1ffad5fbdbe3bc06f5.tar.gz nextcloud-server-0d39079c99d9ae0fbe019b1ffad5fbdbe3bc06f5.zip |
fix(settings): check if activeSectionId and activeSectionType are defined before using them
Closes #41513
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
Diffstat (limited to 'apps/settings')
-rw-r--r-- | apps/settings/templates/settings/frame.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/settings/templates/settings/frame.php b/apps/settings/templates/settings/frame.php index fac4753eeaf..9b9bab8c283 100644 --- a/apps/settings/templates/settings/frame.php +++ b/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> |