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

Avoids undefined variable notice #2159

Merged
merged 1 commit into from
Apr 16, 2021

Conversation

pschoffer
Copy link
Contributor

@pschoffer pschoffer commented Apr 6, 2021

Description of the Change

Avoids Undefined variable: closed by defining the variable preemptively.

Alternate Designs

n/a - it is a kinda simple solution so not sure of different approaches.

Benefits

No notice

Possible Drawbacks

n/a

Verification Process

Ran on our dev-environment... the notice is gone

Checklist:

  • [x I have read the CONTRIBUTING document.
  • My code follows the code style of this project.
  • [n/a] My change requires a change to the documentation.
  • [n/a] I have updated the documentation accordingly.
  • [n/a] I have added tests to cover my change.
  • All new and existing tests passed.

Applicable Issues

Fixes #2155

Changelog Entry

Fixed Undefined variable: closed notice in update_index_settings.

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.

BUG: Undefined variable: $closed in includes/classes/Elasticsearch.php
3 participants