diff options
Diffstat (limited to 'kohana/helpers/valid.php')
-rw-r--r-- | kohana/helpers/valid.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kohana/helpers/valid.php b/kohana/helpers/valid.php index 88cca584..25f90f68 100644 --- a/kohana/helpers/valid.php +++ b/kohana/helpers/valid.php @@ -277,7 +277,7 @@ class valid_Core { { // Use localeconv to set the decimal_point value: Usually a comma or period. $locale = localeconv(); - return (preg_match('/^-?[0-9'.$locale['decimal_point'].']++$/D', (string) $str)); + return (bool) preg_match('/^-?[0-9'.$locale['decimal_point'].']++$/D', (string) $str); } /** |