summaryrefslogtreecommitdiffstats
path: root/system/libraries/Validation.php
diff options
context:
space:
mode:
authoradmin <devnull@localhost>2006-09-18 17:46:28 +0200
committeradmin <devnull@localhost>2006-09-18 17:46:28 +0200
commit89a8b9700cd8b27da1f27a18ab5f9d4c5ca2cef4 (patch)
tree6ccf4f1251428aa7353da8e710bb7ed000cd99ae /system/libraries/Validation.php
parent06508c43fbf5764755ca3a00e64e141a20d9ddff (diff)
Diffstat (limited to 'system/libraries/Validation.php')
-rw-r--r--system/libraries/Validation.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/system/libraries/Validation.php b/system/libraries/Validation.php
index e4fd36698..227cf9f9a 100644
--- a/system/libraries/Validation.php
+++ b/system/libraries/Validation.php
@@ -240,7 +240,6 @@ class CI_Validation {
// Cycle through the rules!
foreach ($ex As $rule)
{
-
// Is the rule a callback?
$callback = FALSE;
if (substr($rule, 0, 9) == 'callback_')
@@ -267,6 +266,12 @@ class CI_Validation {
}
$result = $this->obj->$rule($_POST[$field], $param);
+
+ // If the field isn't requires we'll move on...
+ if ( ! in_array('required', $ex))
+ {
+ continue;
+ }
}
else
{