Skip to content
This repository has been archived by the owner on May 8, 2024. It is now read-only.

Commit

Permalink
Corrected a variable name issue (causing test failure)
Browse files Browse the repository at this point in the history
  • Loading branch information
tklever committed Jun 29, 2013
1 parent 14802e5 commit 08eff87
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions library/Zend/Form/Factory.php
Original file line number Diff line number Diff line change
Expand Up @@ -479,18 +479,18 @@ protected function prepareAndInjectFactory($factoryOrName, FieldsetInterface $fi
}

if (is_string($factoryOrName)) {
$factory = $this->getFactoryFromName($factoryOrName);
$factoryOrName = $this->getFactoryFromName($factoryOrName);
}

if (!$factory instanceof Factory) {
if (!$factoryOrName instanceof Factory) {
throw new Exception\DomainException(sprintf(
'%s expects a valid extention of Zend\Form\Factory; received "%s"',
$method,
$factoryOrName
));
}

$fieldset->setFormFactory($factory);
$fieldset->setFormFactory($factoryOrName);
}

/**
Expand Down

0 comments on commit 08eff87

Please sign in to comment.