Skip to content

fix: skip empty getOption values in Autoresponder hook#311

Open
Ibochkarev wants to merge 1 commit into
Sterc:3.xfrom
Ibochkarev:fix/autoresponder-getoption-skip-empty
Open

fix: skip empty getOption values in Autoresponder hook#311
Ibochkarev wants to merge 1 commit into
Sterc:3.xfrom
Ibochkarev:fix/autoresponder-getoption-skip-empty

Conversation

@Ibochkarev

Copy link
Copy Markdown

getOption() calls for fiarFrom, fiarSender, and fiarFromName around line 79 of Autoresponder.php didn't skip empty values, so an empty property fell through instead of using the default. That could cause the auto-responder email to fail to send.

Adds true as the fourth argument to those three getOption() calls, matching the existing pattern already used a few lines above for fiarTpl.

Fixes #282

$mailFrom, $mailSender, and $mailFromName fell back to an empty string
instead of the default when fiarFrom/fiarSender/fiarFromName existed
in the properties but were empty, which could cause the auto-responder
email to fail to send. Pass true as the fourth getOption() argument so
empty values are skipped in favor of the default.

Fixes Sterc#282
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.

Fix getOption() calls in FormIt Autoresponder

1 participant