Avoid PHP Warnings

Created on 16 July 2023, over 1 year ago
Updated 31 July 2023, over 1 year ago

Problem/Motivation

Friendly Captcha fills the watchdog log with PHP warnings:

Notice: Array to string conversion in friendlycaptcha_captcha() (line 124 of CONTRIB/modules/friendlycaptcha/friendlycaptcha.module).

In case of rejected submission attempts, this one is logged as well:

Notice: Undefined index: frc-captcha-solution in friendlycaptcha_captcha_validation() (line 164 of CONTRIB/modules/friendlycaptcha/friendlycaptcha.module).

Steps to reproduce

Just look at the watchdog log...

🐛 Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

🇨🇭Switzerland salvis

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024