summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJody Hamilton2012-07-18 20:44:47 (GMT)
committerJody Hamilton2012-07-18 20:44:47 (GMT)
commit3e52690887b8e82141969296bffe352308216773 (patch)
treebbd372885728b3b8c147633384237fe96b975acd
parent99c0fe501e2a8e14e61dd5e308a523d864e46558 (diff)
prevent minor notice
-rw-r--r--webform_entity.module2
1 files changed, 1 insertions, 1 deletions
diff --git a/webform_entity.module b/webform_entity.module
index c44501a..f3fcc7b 100644
--- a/webform_entity.module
+++ b/webform_entity.module
@@ -397,7 +397,7 @@ function webform_entity_form_alter(&$form, &$form_state, $form_id) {
field_attach_form('webform_submission_entity', $submission, $form['submitted']['webform_entity_form'], $form_state);
$node = $form['#node'];
$instances = field_info_instances('webform_submission_entity', $node->type);
- $data = unserialize($node->webform['webform_entity_data']);
+ $data = isset($node->webform['webform_entity_data']) ? unserialize($node->webform['webform_entity_data']) : array();
if (count($instances)) {
foreach ($instances as $name => $instance) {
$skip = FALSE;