summaryrefslogtreecommitdiffstats
path: root/core/templates
diff options
context:
space:
mode:
authorVincent Petry <vincent@nextcloud.com>2022-07-26 15:34:19 +0200
committernextcloud-command <nextcloud-command@users.noreply.github.com>2022-07-26 14:00:12 +0000
commitb896cd7f01f6fc6ddcaba2685d9f5fce4e7163f8 (patch)
treefa6f70b348bd5063e61623afd3c3e002dfea55ae /core/templates
parent32c61539e58f894dd7720b75bc07d8e46b8037b2 (diff)
downloadnextcloud-server-b896cd7f01f6fc6ddcaba2685d9f5fce4e7163f8.tar.gz
nextcloud-server-b896cd7f01f6fc6ddcaba2685d9f5fce4e7163f8.zip
Add missing closing spans and avoid empty href
Signed-off-by: Vincent Petry <vincent@nextcloud.com> Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
Diffstat (limited to 'core/templates')
-rw-r--r--core/templates/layout.user.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/templates/layout.user.php b/core/templates/layout.user.php
index 63fb5c597f7..ebbef7bae51 100644
--- a/core/templates/layout.user.php
+++ b/core/templates/layout.user.php
@@ -175,7 +175,7 @@ $getUserAvatar = static function (int $size) use ($_): string {
<ul>
<?php foreach ($_['settingsnavigation'] as $entry):?>
<li data-id="<?php p($entry['id']); ?>">
- <a href="<?php print_unescaped($entry['href']); ?>"
+ <a href="<?php print_unescaped($entry['href'] !== '' ? $entry['href'] : '#'); ?>"
<?php if ($entry["active"]): ?> class="active"<?php endif; ?>>
<img alt="" src="<?php print_unescaped($entry['icon'] . '?v=' . $_['versionHash']); ?>">
<?php p($entry['name']) ?>