From 985abc75578b12e219cd0cb7e74caab83822fcea Mon Sep 17 00:00:00 2001 From: Sean Harvey Date: Sun, 20 Apr 2008 00:44:14 +0000 Subject: [PATCH] Variable name change --- code/MultiForm.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/code/MultiForm.php b/code/MultiForm.php index 435422d..d3b91ec 100644 --- a/code/MultiForm.php +++ b/code/MultiForm.php @@ -399,7 +399,7 @@ abstract class MultiForm extends Form { if($step->getNextStep()) { // Is this step in the DB? If it is, we use that if($nextStep = $step->getNextStepFromDatabase()) { - $templateData = array( + $record = array( 'ID' => $nextStep->ID, 'ClassName' => $nextStep->class, 'Title' => $nextStep->getTitle(), @@ -409,13 +409,13 @@ abstract class MultiForm extends Form { } else { // If it's not in the DB, we use a singleton instance of it instead - this step hasn't been accessed yet $nextStep = singleton($step->getNextStep()); - $templateData = array( + $record = array( 'ClassName' => $nextStep->class, 'Title' => $nextStep->getTitle() ); } // Add the array data, and do a callback - $stepsFound->push(new ArrayData($templateData)); + $stepsFound->push(new ArrayData($record)); $this->getAllStepsRecursive($nextStep, $stepsFound); } // Once we've reached the final step, we just return what we've collected