summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorCarl Schwan <carl@carlschwan.eu>2022-02-17 12:44:39 +0100
committerGitHub <noreply@github.com>2022-02-17 12:44:39 +0100
commit6628e18c8d3def8e47800eeba49d904f790da9d5 (patch)
tree754e65a271ecec3b8b3c6e9bdcab00bb53bf18b8 /core
parent25762fb513ad175792b80aebbdd90ccbbde62d20 (diff)
parentb66c92e6dd3e931ece46a751f4ac1e3d17930b17 (diff)
downloadnextcloud-server-6628e18c8d3def8e47800eeba49d904f790da9d5.tar.gz
nextcloud-server-6628e18c8d3def8e47800eeba49d904f790da9d5.zip
Merge pull request #31213 from nextcloud/fix/target-unset
Fix target attribute does not exists
Diffstat (limited to 'core')
-rw-r--r--core/templates/layout.user.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/templates/layout.user.php b/core/templates/layout.user.php
index 3440358c61f..55112c564a6 100644
--- a/core/templates/layout.user.php
+++ b/core/templates/layout.user.php
@@ -69,7 +69,7 @@ $getUserAvatar = static function (int $size) use ($_): string {
<?php foreach ($_['navigation'] as $entry): ?>
<li data-id="<?php p($entry['id']); ?>" class="hidden" tabindex="-1">
<a href="<?php print_unescaped($entry['href']); ?>"
- <?php if ($entry['target']): ?> target="_blank" rel="noreferrer noopener"<?php endif; ?>
+ <?php if (isset($entry['target']) && $entry['target']): ?> target="_blank" rel="noreferrer noopener"<?php endif; ?>
<?php if ($entry['active']): ?> class="active"<?php endif; ?>
aria-label="<?php p($entry['name']); ?>">
<svg width="24" height="20" viewBox="0 0 24 20" alt=""<?php if ($entry['unread'] !== 0) { ?> class="has-unread"<?php } ?>>
@@ -106,7 +106,7 @@ $getUserAvatar = static function (int $size) use ($_): string {
<?php foreach ($_['navigation'] as $entry): ?>
<li data-id="<?php p($entry['id']); ?>">
<a href="<?php print_unescaped($entry['href']); ?>"
- <?php if ($entry['target']): ?> target="_blank" rel="noreferrer noopener"<?php endif; ?>
+ <?php if (isset($entry['target']) && $entry['target']): ?> target="_blank" rel="noreferrer noopener"<?php endif; ?>
<?php if ($entry['active']): ?> class="active"<?php endif; ?>
aria-label="<?php p($entry['name']); ?>">
<svg width="20" height="20" viewBox="0 0 20 20" alt=""<?php if ($entry['unread'] !== 0) { ?> class="has-unread"<?php } ?>>