summaryrefslogtreecommitdiffstats
path: root/core/templates
diff options
context:
space:
mode:
authorCarl Schwan <carl@carlschwan.eu>2022-02-16 14:35:51 +0100
committerCarl Schwan <carl@carlschwan.eu>2022-02-16 14:35:51 +0100
commitb66c92e6dd3e931ece46a751f4ac1e3d17930b17 (patch)
treeff63b2284235ec53b812402714b69dbaeea8e56b /core/templates
parent393d581c3a767792b2cf7ec9d7e4588474c05289 (diff)
downloadnextcloud-server-b66c92e6dd3e931ece46a751f4ac1e3d17930b17.tar.gz
nextcloud-server-b66c92e6dd3e931ece46a751f4ac1e3d17930b17.zip
Fix target attribute does not exists
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
Diffstat (limited to 'core/templates')
-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 } ?>>