diff options
author | admin <devnull@localhost> | 2006-09-21 07:36:15 +0200 |
---|---|---|
committer | admin <devnull@localhost> | 2006-09-21 07:36:15 +0200 |
commit | 885b0343036695ad673fc24ba7682fc155c54036 (patch) | |
tree | 648e3d80b6082c905cc291e0bb1d033f57bf06ba /system/libraries/Validation.php | |
parent | cfc1fb38f0d7cd49c735730a603f7ca5a98a664d (diff) |
Diffstat (limited to 'system/libraries/Validation.php')
-rw-r--r-- | system/libraries/Validation.php | 2 |
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; } // -------------------------------------------------------------------- |