summaryrefslogtreecommitdiffstats
path: root/system
diff options
context:
space:
mode:
authorMichiel Vugteveen <michiel@it-can.nl>2012-06-14 23:30:44 +0200
committerMichiel Vugteveen <michiel@it-can.nl>2012-06-14 23:30:44 +0200
commit64cfef0fb8cf6254cb08a0c2e3aef04cd5721942 (patch)
tree2137a73258366d6898f7c8d809ed90eca735b685 /system
parenta8221ade975111eb55da06b553789ad541bf2bff (diff)
fixed other functions
Diffstat (limited to 'system')
-rw-r--r--system/libraries/Form_validation.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/system/libraries/Form_validation.php b/system/libraries/Form_validation.php
index 37eb7a9cd..621316c4a 100644
--- a/system/libraries/Form_validation.php
+++ b/system/libraries/Form_validation.php
@@ -1004,8 +1004,8 @@ class CI_Form_validation {
}
return (MB_ENABLED === TRUE)
- ? ($val <= mb_strlen($str))
- : ($val <= strlen($str));
+ ? (intval($val) <= mb_strlen($str))
+ : (intval($val) <= strlen($str));
}
// --------------------------------------------------------------------
@@ -1025,8 +1025,8 @@ class CI_Form_validation {
}
return (MB_ENABLED === TRUE)
- ? ($val >= mb_strlen($str))
- : ($val >= strlen($str));
+ ? (intval($val) >= mb_strlen($str))
+ : (intval($val) >= strlen($str));
}
// --------------------------------------------------------------------