From cffbcd010d8f95ef65212e4325fc4dab52ed0688 Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Wed, 13 Jul 2011 20:59:51 -0500 Subject: [PATCH] changed continue to return in validation library. --- system/validator.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/validator.php b/system/validator.php index d49ebce1..937f0b57 100644 --- a/system/validator.php +++ b/system/validator.php @@ -120,7 +120,7 @@ class Validator { // is "required" or "accepted". No other rules have implicit "required" checks. if ( ! array_key_exists($attribute, $this->attributes) and ! in_array($rule, array('required', 'accepted'))) { - continue; + return; } if ( ! $this->$validator($attribute, $parameters))