fix variable name typo
authorChuck Hagenbuch <chuck@horde.org>
Thu, 1 Oct 2009 20:38:55 +0000 (16:38 -0400)
committerChuck Hagenbuch <chuck@horde.org>
Fri, 2 Oct 2009 00:59:31 +0000 (20:59 -0400)
framework/Constraint/lib/Horde/Constraint/Coupler.php

index 514a7fd..d1b0ee0 100644 (file)
@@ -22,8 +22,8 @@ abstract class Horde_Constraint_Coupler implements Horde_Constraint
     public function addConstraint(Horde_Constraint $constraint)
     {
         $kind = get_class($this);
-        if ($constrainst instanceof $kind) {
-            foreach ($constrainst->getConstraints() as $c) {
+        if ($constraint instanceof $kind) {
+            foreach ($constraint->getConstraints() as $c) {
                 $this->addConstraint($c);
             }
         } else {