Skip to content
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

check if value exists befor using it #22882

Open
wants to merge 6 commits into
base: 5.x-dev
Choose a base branch
from

Conversation

mikkeschiren
Copy link
Contributor

Description:

If no URLs are added to the URL field when creating a new website, you get a warning in the log of missing value for the array $settings['value'].
This suggested patch checks if $settings['value'] exists.

Review

@mikkeschiren mikkeschiren changed the title check if value exists for using it check if value exists befor using it Dec 20, 2024
@michalkleiner
Copy link
Contributor

Hi @mikkeschiren, thanks for the PR, however after looking at the code in a bit more detail, I think we can't just simply "not use the value when it's not provided" as the mechanism is setting different types of measurable configurations and each may require different treatment of the empty value, some might be arrays, some might be false, so just omitting is probably not the correct solution.

@mikkeschiren
Copy link
Contributor Author

mikkeschiren commented Jan 6, 2025

How should we change the check so we do not get the warnings? Should I change it to just look for the url field?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants