diff options
author | Mike Funk <mfunk@xulonpress.com> | 2012-03-19 14:51:28 +0100 |
---|---|---|
committer | Mike Funk <mfunk@xulonpress.com> | 2012-03-19 14:51:28 +0100 |
commit | 1ce0c424dd33d3b72ee61f5b812802ec0f073880 (patch) | |
tree | d5405ead3cdccbf115a601df0fb03b2d5e46a45e /system/libraries/Form_validation.php | |
parent | 994105cb45eba44b62bab41dfce76582b34c6913 (diff) | |
parent | 7eea3064af3be5dd0b526056211a510f90a40766 (diff) |
merged with latest develop.
Diffstat (limited to 'system/libraries/Form_validation.php')
-rw-r--r-- | system/libraries/Form_validation.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/system/libraries/Form_validation.php b/system/libraries/Form_validation.php index 826d94fb0..3e0c72e84 100644 --- a/system/libraries/Form_validation.php +++ b/system/libraries/Form_validation.php @@ -72,7 +72,7 @@ class CI_Form_validation { $this->CI->load->helper('form'); // Set the character encoding in MB. - if (function_exists('mb_internal_encoding')) + if (MB_ENABLED === TRUE) { mb_internal_encoding($this->CI->config->item('charset')); } @@ -101,7 +101,7 @@ class CI_Form_validation { return $this; } - // If an array was passed via the first parameter instead of indidual string + // If an array was passed via the first parameter instead of individual string // values we cycle through it and recursively call this function. if (is_array($field)) { @@ -950,7 +950,7 @@ class CI_Form_validation { return FALSE; } - if (function_exists('mb_strlen')) + if (MB_ENABLED === TRUE) { return ! (mb_strlen($str) < $val); } @@ -974,7 +974,7 @@ class CI_Form_validation { return FALSE; } - if (function_exists('mb_strlen')) + if (MB_ENABLED === TRUE) { return ! (mb_strlen($str) > $val); } @@ -998,7 +998,7 @@ class CI_Form_validation { return FALSE; } - if (function_exists('mb_strlen')) + if (MB_ENABLED === TRUE) { return (mb_strlen($str) == $val); } |