diff options
author | Pytal <24800714+Pytal@users.noreply.github.com> | 2025-02-11 16:48:55 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-02-11 16:48:55 -0800 |
commit | 167a78ff54e8ef86959e24c844bba6fc7ae09be2 (patch) | |
tree | 13fcb01377ad6991439e445f8bcc5ea7c372e22b | |
parent | 966166dabd66c3269b27097b64c6dccf5858ba67 (diff) | |
parent | 5786fcb3fb0d55737b9bab1d7509c868689e8256 (diff) | |
download | nextcloud-server-167a78ff54e8ef86959e24c844bba6fc7ae09be2.tar.gz nextcloud-server-167a78ff54e8ef86959e24c844bba6fc7ae09be2.zip |
Merge pull request #50081 from nextcloud/fix/undefined-application-key
fix(core): Fix undefined "application" array key error
-rw-r--r-- | core/templates/layout.public.php | 2 | ||||
-rw-r--r-- | core/templates/layout.user.php | 2 |
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()); ?> |