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 array_key_exists() PHP warning in Report Forms #8938

Merged
merged 1 commit into from
Aug 27, 2016

Conversation

jcharaoui
Copy link
Contributor

If the query just below returns an empty set, PHP throws a warning about $customFields being undefined (null), so initialize it properly as an empty array.

If the query just below returns an empty set, PHP throws a warning about $customFields being undefined (null), so initialize it properly as an empty array.
@civicrm-builder
Copy link

Can one of the admins verify this patch?

@totten
Copy link
Member

totten commented Aug 26, 2016

jenkins, ok to test

@seamuslee001
Copy link
Contributor

@jcharaoui Jerome is there a JIRA issue logged for this?

@jcharaoui
Copy link
Contributor Author

@seamuslee001 There isn't, sorry about that. I thought this was really too straightforward to warrant a ticket. I may be mistaken, of course...

@totten
Copy link
Member

totten commented Aug 27, 2016

Yeah, usually we want a JIRA issue, but agree this patch is pretty small/straightforward.

@totten totten merged commit a73f00b into civicrm:master Aug 27, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants