aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristopher Ng <chrng8@gmail.com>2025-02-11 16:07:59 -0800
committerChristopher Ng <chrng8@gmail.com>2025-02-11 16:07:59 -0800
commit5786fcb3fb0d55737b9bab1d7509c868689e8256 (patch)
tree1aa9c1994c2451ae2c019c627039f8f62857205b
parentb684c180a90a9d87d2d1fe92f3a79ea0e2a36a2d (diff)
downloadnextcloud-server-5786fcb3fb0d55737b9bab1d7509c868689e8256.tar.gz
nextcloud-server-5786fcb3fb0d55737b9bab1d7509c868689e8256.zip
fix(core): Fix undefined "application" array key error in user layout
Signed-off-by: Christopher Ng <chrng8@gmail.com>
-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 80f8459666b..2998727ee8d 100644
--- a/core/templates/layout.user.php
+++ b/core/templates/layout.user.php
@@ -24,7 +24,7 @@ $getUserAvatar = static function (int $size) use ($_): string {
<meta charset="utf-8">
<title>
<?php
- p(!empty($_['pageTitle']) && $_['pageTitle'] !== $_['application'] ? $_['pageTitle'] . ' - ' : '');
+ p(!empty($_['pageTitle']) && (empty($_['application']) || $_['pageTitle'] !== $_['application']) ? $_['pageTitle'] . ' - ' : '');
p(!empty($_['application']) ? $_['application'] . ' - ' : '');
p($theme->getTitle());
?>