Skip to content

Instantly share code, notes, and snippets.

@jonnu
Created July 6, 2012 12:15
Show Gist options
  • Save jonnu/3059830 to your computer and use it in GitHub Desktop.
Save jonnu/3059830 to your computer and use it in GitHub Desktop.
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