Unverified Commit 9532fd2a authored by joseph.olstad's avatar joseph.olstad Committed by Manuel Garcia

Issue #1727930 by amoebanath, pavel.karoukin, rossb89, joseph.olstad: Webform...

Issue #1727930 by amoebanath, pavel.karoukin, rossb89, joseph.olstad: Webform Encrypt module breaks mail sending when encrypted field is optional and submitted with empty value
parent 07237b6e
......@@ -124,7 +124,9 @@ function webform_encrypt_preprocess_webform_results_table(&$vars) {
$component = $vars['components'][$cid];
if (!empty($component['extra']['encrypt'])) {
foreach ($item['value'] as &$value) {
$value = user_access('view encrypted values') ? decrypt($value, array('base64' => TRUE)) : t('[Value Encrypted]');
if (!empty($value)) {
$value = user_access('view encrypted values') ? decrypt($value, array('base64' => TRUE)) : t('[Value Encrypted]');
}
}
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment