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

[REF] Code cleanup; remove unused vars and remove CRM_Utils_Array::value #26714

Merged
merged 1 commit into from
Jul 3, 2023

Conversation

colemanw
Copy link
Member

@colemanw colemanw commented Jul 3, 2023

Overview

Just a bit of code cleanup/simplification

@civibot
Copy link

civibot bot commented Jul 3, 2023

(Standard links)

@civibot civibot bot added the master label Jul 3, 2023
if ($key != 'contact.postal_code' &&
CRM_Utils_Array::value($exactKey, $fields) == NULL
) {
if ($key !== 'contact.postal_code' && empty($fields[$exactKey])) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suppose this is the same because the other only does == NULL

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep, and we'll never know if the original developer meant to do === but at least this is equivalent to what was before.

@eileenmcnaughton eileenmcnaughton merged commit 9b18b65 into civicrm:master Jul 3, 2023
@eileenmcnaughton eileenmcnaughton deleted the codeFixes branch July 3, 2023 19:30
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.

2 participants