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
commitb684c180a90a9d87d2d1fe92f3a79ea0e2a36a2d (patch)
tree8b1e2ded44c6d8370ba86645cfa2ac6d5aff0cb2
parent90a1aea5747e7085ea8988ff8602b6d02c2f59c8 (diff)
downloadnextcloud-server-b684c180a90a9d87d2d1fe92f3a79ea0e2a36a2d.tar.gz
nextcloud-server-b684c180a90a9d87d2d1fe92f3a79ea0e2a36a2d.zip
fix(core): Fix undefined "application" array key error
Signed-off-by: Christopher Ng <chrng8@gmail.com>
-rw-r--r--core/templates/layout.public.php2
1 files changed, 1 insertions, 1 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());
?>