Skip to content

Commit 5786fcb

Browse files
committed
fix(core): Fix undefined "application" array key error in user layout
Signed-off-by: Christopher Ng <[email protected]>
1 parent b684c18 commit 5786fcb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/templates/layout.user.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
<meta charset="utf-8">
2525
<title>
2626
<?php
27-
p(!empty($_['pageTitle']) && $_['pageTitle'] !== $_['application'] ? $_['pageTitle'] . ' - ' : '');
27+
p(!empty($_['pageTitle']) && (empty($_['application']) || $_['pageTitle'] !== $_['application']) ? $_['pageTitle'] . ' - ' : '');
2828
p(!empty($_['application']) ? $_['application'] . ' - ' : '');
2929
p($theme->getTitle());
3030
?>

0 commit comments

Comments
 (0)