Skip to content

Fix for PHP notice error on custom field required check #152

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

akamola
Copy link

@akamola akamola commented Dec 3, 2018

PHP (with WordPress in development mode) shows a notice error on custom fields without a required flag:

Notice: Undefined index: _custom_field_1_required in […]/wordpress/wp-content/plugins/sendpress/classes/sc/class-sendpress-sc-forms.php on line 494

This fix provides a quick fix with a check, if the required flag exists in the options array.

PHP (with WordPress in development mode) shows a notice error on custom fields without a required flag:

> Notice:  Undefined index: _custom_field_1_required in […]/wordpress/wp-content/plugins/sendpress/classes/sc/class-sendpress-sc-forms.php on line 494

This fix provides a quick fix with a check, if the required flag exists in the options array.
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