MINOR Reuse of $currentStep variable, instead of retrieving the step again

This commit is contained in:
Sean Harvey 2008-12-17 11:11:53 +00:00
parent 9f8d2e1da8
commit 203bb03286

View File

@ -113,8 +113,8 @@ abstract class MultiForm extends Form {
// Apply validation if the current step requires validation (is not exempt)
if($applyValidation) {
if($this->getCurrentStep()->getValidator()) {
$validator = $this->getCurrentStep()->getValidator();
if($currentStep->getValidator()) {
$validator = $currentStep->getValidator();
}
}