summaryrefslogtreecommitdiffstats
path: root/system/libraries/Validation.php
diff options
context:
space:
mode:
authoradmin <devnull@localhost>2006-09-28 19:13:38 +0200
committeradmin <devnull@localhost>2006-09-28 19:13:38 +0200
commitee54c112bfb488f833fa032758b817e1bb2c1d7d (patch)
tree0f88961293c374d2f6da29856466b75ce319e119 /system/libraries/Validation.php
parente721cc7c81af84dcabce2992fa693ce36b605a19 (diff)
Diffstat (limited to 'system/libraries/Validation.php')
-rw-r--r--system/libraries/Validation.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/system/libraries/Validation.php b/system/libraries/Validation.php
index 80ee6a533..7db67a3e1 100644
--- a/system/libraries/Validation.php
+++ b/system/libraries/Validation.php
@@ -187,7 +187,7 @@ class CI_Validation {
$ex = explode('|', $rules);
// Is the field required? If not, if the field is blank we'll move on to the next text
- if ( ! in_array('required', $ex) AND strpos($rules, 'callback_') === FALSE)
+ if ( ! in_array('required', $ex, TRUE) AND strpos($rules, 'callback_') === FALSE)
{
if ( ! isset($_POST[$field]) OR $_POST[$field] == '')
{
@@ -206,7 +206,7 @@ class CI_Validation {
*/
if ( ! isset($_POST[$field]))
{
- if (in_array('isset', $ex) OR in_array('required', $ex))
+ if (in_array('isset', $ex, TRUE) OR in_array('required', $ex))
{
if ( ! isset($this->_error_messages['isset']))
{
@@ -268,7 +268,7 @@ class CI_Validation {
$result = $this->obj->$rule($_POST[$field], $param);
// If the field isn't required and we just processed a callback we'll move on...
- if ( ! in_array('required', $ex) AND $result !== FALSE)
+ if ( ! in_array('required', $ex, TRUE) AND $result !== FALSE)
{
continue 2;
}