diff options
author | gxgpet <gxgpet@users.noreply.github.com> | 2016-10-20 10:54:19 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-10-20 10:54:19 +0200 |
commit | 433ebc5814cda44a93664812f28e030f61732564 (patch) | |
tree | ad45264199e3c6221e78c96b7b19e48ae6e5a516 /system | |
parent | d933c9eb04752496124ef4a5f5df6ffbaf0a1d87 (diff) |
Accepting strings too, 0 allowed.
Diffstat (limited to 'system')
-rw-r--r-- | system/helpers/number_helper.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/system/helpers/number_helper.php b/system/helpers/number_helper.php index 8e77c91ab..d7b96c322 100644 --- a/system/helpers/number_helper.php +++ b/system/helpers/number_helper.php @@ -105,7 +105,7 @@ if ( ! function_exists('ordinal_format')) */ function ordinal_format($number) { - if ( ! is_int($number) OR $number < 1) + if ( ! is_numeric($number) OR $number < 0) { return FALSE; } |