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

fix: assignment fix for constants #99

Merged
merged 2 commits into from
Dec 28, 2023
Merged

Conversation

LeMernbag
Copy link
Contributor

Bug:

  • current conditional only checks whether the key exists, which is does by default, so this always returns true.

Resolution:

  • check isset() first and then verify that the value isn't empty before assigning it

Validates that the value of the $saved_settings[$key] isn't empty before assigning it
@vvuksan vvuksan merged commit 0e716fb into fastly:master Dec 28, 2023
@LeMernbag LeMernbag deleted the master-1 branch January 3, 2024 14:12
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