creativedotdesign / tofino

WordPress boilerplate theme on a modern stack. NPM and Composer.
Other
29 stars 6 forks source link

Ajax Form Send Mail fails if empty CC value passed #260

Closed danimalweb closed 5 years ago

danimalweb commented 6 years ago

In Ajaxform sendEmail, if the function is passed an array of headers which includes the CC key with an empty value the function fails.

Fix the code so that the value is checked not just the presence of the array key.