summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 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;
}