Created
July 6, 2012 12:15
-
-
Save jonnu/3059830 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/system/libraries/Form_validation.php b/system/libraries/Form_validation.php | |
index 3536241..46a8c41 100644 | |
--- a/system/libraries/Form_validation.php | |
+++ b/system/libraries/Form_validation.php | |
@@ -630,6 +630,11 @@ class CI_Form_validation { | |
// Cycle through each rule and run it | |
foreach ($rules as $rule) | |
{ | |
+ if (empty($rule)) | |
+ { | |
+ continue; | |
+ } | |
+ | |
$_in_array = FALSE; | |
// We set the $postdata variable with the current data in our master array so that |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment