aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndy Scherzinger <info@andy-scherzinger.de>2025-02-12 12:02:44 +0100
committerGitHub <noreply@github.com>2025-02-12 12:02:44 +0100
commit77ccb71537a2a33b73be1c15641b87159e3fcfe7 (patch)
tree18843dde74b64213b0b7cd4cb12a2aa50a96296b
parent1162b638166e99726b4e08826eb4439111795107 (diff)
parent74d26019c33ab490462284acb473338ce7cb0583 (diff)
downloadnextcloud-server-77ccb71537a2a33b73be1c15641b87159e3fcfe7.tar.gz
nextcloud-server-77ccb71537a2a33b73be1c15641b87159e3fcfe7.zip
Merge pull request #50766 from nextcloud/backport/50081/stable31
[stable31] fix(core): Fix undefined "application" array key error
-rw-r--r--core/templates/layout.public.php2
-rw-r--r--core/templates/layout.user.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/core/templates/layout.public.php b/core/templates/layout.public.php
index 9512ca8ebe4..42f4ab73583 100644
--- a/core/templates/layout.public.php
+++ b/core/templates/layout.public.php
@@ -10,7 +10,7 @@
<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());
?>
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());
?>