Don't need to check if data exists first

This commit is contained in:
Sean Harvey 2008-04-30 03:46:35 +00:00
parent 75a4fb78d5
commit 3872ca004c
1 changed files with 2 additions and 4 deletions

View File

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