Closed Karmalakas closed 1 year ago
Fixed this another way.. cheers.
Would you mind sharing a link to the change?
In any case, having just $var['index']
checks anywhere isn't the best practice. There should always be empty()
or isset()
in similar cases.
Also, I don't understand why a simple warning would be a critical error 😕
https://github.com/getgrav/grav-plugin-email/blob/develop/classes/Email.php#L271
restructured the function too to make it a bit more readible.
Without this check, it causes a Critical Grav error (which should be just a warning IMO) of undefined index and prevents whole form email action process. Usually name is not required and often not known. In my specific case, it was with the
bcc
config and undefined index wasbcc_name