summaryrefslogtreecommitdiffstats
path: root/system/helpers
diff options
context:
space:
mode:
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;
}