diff options
author | gxgpet <gxgpet@users.noreply.github.com> | 2016-10-20 11:21:05 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-10-20 11:21:05 +0200 |
commit | 1ff88001bead0ff4187a5b121d9d36a25a45c313 (patch) | |
tree | 807fa9f29e869a4a5b8c635f8a4a7efb450b259c /system/helpers | |
parent | 7534aa85c2c8a4359f6df0a6f421fb15ca981877 (diff) |
fixed floating for ordinal_format()
Diffstat (limited to 'system/helpers')
-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 e94a5ffbc..af8b70f86 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_numeric($number) OR $number < 0) + if ( ! ctype_digit((string) $number) OR $number < 0) { return FALSE; } |