summaryrefslogtreecommitdiffstats
path: root/system/helpers
diff options
context:
space:
mode:
authorgxgpet <gxgpet@users.noreply.github.com>2016-10-20 11:21:05 +0200
committerGitHub <noreply@github.com>2016-10-20 11:21:05 +0200
commit1ff88001bead0ff4187a5b121d9d36a25a45c313 (patch)
tree807fa9f29e869a4a5b8c635f8a4a7efb450b259c /system/helpers
parent7534aa85c2c8a4359f6df0a6f421fb15ca981877 (diff)
fixed floating for ordinal_format()
Diffstat (limited to 'system/helpers')
-rw-r--r--system/helpers/number_helper.php2
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;
}