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

Update mycred-hook-woocommerce.php to check if array key is set #20

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

Conversation

bradmkjr
Copy link

Resolves issue with a warning being written to Apache error log:

PHP Warning: Undefined array key 0 in /bitnami/wordpress/wp-content/plugins/mycred/includes/hooks/external/mycred-hook-woocommerce.php on line 424

This warning has appeared over 40,000 times in our apache log, and would greatly appreciate this small code change to prevent the warning from being generated.

Thanks you
Dev Team
Western CPE

Resolves issue with a warning being written to Apache error log:

PHP Warning:  Undefined array key 0 in /bitnami/wordpress/wp-content/plugins/mycred/includes/hooks/external/mycred-hook-woocommerce.php on line 424
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.

None yet

1 participant