From 5c6445a0233ea4503c9460174f42f69ab28116cf Mon Sep 17 00:00:00 2001 From: Sven Slootweg Date: Sat, 28 Dec 2013 23:11:14 +0100 Subject: [PATCH] Fix bug in operators --- include.forms.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/include.forms.php b/include.forms.php index 2099a03..7065ec8 100644 --- a/include.forms.php +++ b/include.forms.php @@ -41,9 +41,9 @@ class CPHPFormValidatorPromiseBaseClass public function StartResolve() { /* Back and forth! */ - if(is_null($this->previous) === true) + if($this->previous == $this->handler) { - $this->next->ContinueResolve(array()); + $this->ContinueResolve(array()); } else { @@ -209,7 +209,7 @@ class CPHPFormValidatorOperatorEither extends CPHPFormValidatorOperator $exceptions = array(); foreach($this->children as $child) { - $result = $child->Resolve(); + $result = $child->Resolve($exceptions); if(is_null($result) === false) { $exceptions[] = $result; @@ -239,7 +239,7 @@ class CPHPFormValidatorOperatorAll extends CPHPFormValidatorOperator $exceptions = array(); foreach($this->children as $child) { - $result = $child->Resolve($results); + $result = $child->Resolve($exceptions); if(is_null($result) === false) { $exceptions[] = $result;