diff --git a/code/MultiForm.php b/code/MultiForm.php index 9f5e54c..a08e574 100644 --- a/code/MultiForm.php +++ b/code/MultiForm.php @@ -105,8 +105,10 @@ abstract class MultiForm extends Form { // Set up validator from the form step class $this->validator = $currentStep->getValidator(); - // Load existing data into the form (CAUTION: loadData() MUST unserialize first!) - $this->loadDataFrom($currentStep->loadData()); + // If there is form data, we populate it here (CAUTION: loadData() MUST unserialize first!) + if($currentStep->loadData()) { + $this->loadDataFrom($currentStep->loadData()); + } } /**