-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(core): Fix undefined "application" array key error #50081
base: master
Are you sure you want to change the base?
Conversation
Signed-off-by: Christopher Ng <[email protected]>
Here too maybe? server/core/templates/layout.user.php Line 27 in 1ed3f03
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
isset() would be more corrext
@@ -10,7 +10,7 @@ | |||
<meta charset="utf-8"> | |||
<title> | |||
<?php | |||
p(!empty($_['pageTitle']) && $_['pageTitle'] !== $_['application'] ? $_['pageTitle'] . ' - ' : ''); | |||
p(!empty($_['pageTitle']) && !empty($_['application']) && $_['pageTitle'] !== $_['application'] ? $_['pageTitle'] . ' - ' : ''); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, this will hide pageTitle if application is not set, which is not what we want?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
p(!empty($_['pageTitle']) && !empty($_['application']) && $_['pageTitle'] !== $_['application'] ? $_['pageTitle'] . ' - ' : ''); | |
p(!empty($_['pageTitle']) && (empty($_['application']) || $_['pageTitle'] !== $_['application']) ? $_['pageTitle'] . ' - ' : ''); |
Maybe?
Summary
Fixes
Undefined array key "application"
being loggedChecklist