Commit 2a165291 authored by akoepke's avatar akoepke Committed by Jake Bell

Fixing #1344804: Add check for encryption options to webform_encrypt_webform_component_presave()

parent 8f169744
......@@ -63,8 +63,10 @@ function webform_encrypt_form_alter(&$form, $form_state, $form_id) {
* Save encryption settings for a component.
*/
function webform_encrypt_webform_component_presave(&$component) {
$component['extra'] = array_merge($component['extra'], $component['encryption']);
unset($component['encryption']);
if (!empty($component['encryption'])) {
$component['extra'] = array_merge($component['extra'], $component['encryption']);
unset($component['encryption']);
}
}
/**
......
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