Skip to content

fix: assignment fix for constants#99

Merged
vvuksan merged 2 commits intofastly:masterfrom
LeMernbag:master-1
Dec 28, 2023
Merged

fix: assignment fix for constants#99
vvuksan merged 2 commits intofastly:masterfrom
LeMernbag:master-1

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