-
Notifications
You must be signed in to change notification settings - Fork 164
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] I fixed a PHP Warning added a condition to check if ->get('rec… #1128
[FIX] I fixed a PHP Warning added a condition to check if ->get('rec… #1128
Conversation
@amaninyumu1 Can you describe the scenario please ! |
Hello @Shadow243. |
Hello @Shadow243 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
According to https://github.com/cypht-org/cypht/blob/master/modules/recaptcha/setup.php#L8 $this->get('recaptcha_config')
will never be undefined, did you get an issue about it ?
The file https://github.com/cypht-org/cypht/blob/master/modules/recaptcha/recaptcha.ini should be removed as well.
Yes but in this scenario the error was that the "recaptcha_config" key is null so it was impossible to access array offset on value of type null which is why I checked if it exists. In case it exists then it is not null |
Remove this please |
4b21dc9
to
d6ae005
Compare
…ptcha_config') exists before using it
I just added the same condition at the recaptcha script level to prevent the js file from being reloaded: You can test to see if there will be an error (in console and in logs) |
yes it works |
No description provided.