if (!empty($form->_bltID) && array_key_exists("email-{$form->_bltID}", $fields)) {
// this is a transaction related page
$emailName = 'email-' . $form->_bltID;
- } else {
+ }
+ else {
// find the email field in a profile page
foreach ($fields as $name => $dontCare) {
if (substr($name, 0, 5) == 'email') {