diff --git a/src/Forms/Form.php b/src/Forms/Form.php index 9acef4df5..34b1b0792 100644 --- a/src/Forms/Form.php +++ b/src/Forms/Form.php @@ -1454,7 +1454,7 @@ class Form extends ViewableData implements HasRequestHandler $tmpData = &$data[$name]; // drill down into the data array looking for the corresponding value foreach ($keys as $arrayKey) { - if ($arrayKey !== '') { + if ($tmpData && $arrayKey !== '') { $tmpData = &$tmpData[$arrayKey]; } else { //empty square brackets means new array