Skip to content

Comments

Added checks to fix missing value PHP warnings#204

Open
terresquall wants to merge 1 commit intoPatreon:masterfrom
terresquall:master
Open

Added checks to fix missing value PHP warnings#204
terresquall wants to merge 1 commit intoPatreon:masterfrom
terresquall:master

Conversation

@terresquall
Copy link

In line 870, there is a line that retrieves data from an array variable:

$currently_entitled_tiers = $pledge['relationships']['currently_entitled_tiers']['data'];

However, it is not guaranteed that $pledge is always an array, or always has a value. Hence, checks are added in to ensure that before actually running the line to prevent unnecessary PHP warnings from firing.

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.

1 participant