summaryrefslogtreecommitdiffstats
path: root/system/libraries/Validation.php
diff options
context:
space:
mode:
authoradmin <devnull@localhost>2006-09-21 07:36:15 +0200
committeradmin <devnull@localhost>2006-09-21 07:36:15 +0200
commit885b0343036695ad673fc24ba7682fc155c54036 (patch)
tree648e3d80b6082c905cc291e0bb1d033f57bf06ba /system/libraries/Validation.php
parentcfc1fb38f0d7cd49c735730a603f7ca5a98a664d (diff)
Diffstat (limited to 'system/libraries/Validation.php')
-rw-r--r--system/libraries/Validation.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/system/libraries/Validation.php b/system/libraries/Validation.php
index 065e7a2d5..f9b51d778 100644
--- a/system/libraries/Validation.php
+++ b/system/libraries/Validation.php
@@ -524,7 +524,7 @@ class CI_Validation {
*/
function numeric($str)
{
- return ( ! is_numeric($str)) ? FALSE : TRUE;
+ return ( ! ereg("^[0-9]+$", $str)) ? FALSE : TRUE;
}
// --------------------------------------------------------------------