]> source.dussan.org Git - nextcloud-server.git/commitdiff
fix(settings): check if activeSectionId and activeSectionType are defined before... 42590/head
authorThomas Citharel <tcit@tcit.fr>
Fri, 5 Jan 2024 09:06:28 +0000 (10:06 +0100)
committerThomas Citharel <tcit@tcit.fr>
Fri, 5 Jan 2024 09:06:28 +0000 (10:06 +0100)
Closes #41513

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
apps/settings/templates/settings/frame.php

index fac4753eeafc6ab859536ab98dd0c8c63d851bcf..9b9bab8c28300c044771be3ae96f3bef8932c128 100644 (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>