summaryrefslogtreecommitdiffstats
path: root/system/helpers
diff options
context:
space:
mode:
Diffstat (limited to 'system/helpers')
-rw-r--r--system/helpers/inflector_helper.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/system/helpers/inflector_helper.php b/system/helpers/inflector_helper.php
index c71516564..04e178aec 100644
--- a/system/helpers/inflector_helper.php
+++ b/system/helpers/inflector_helper.php
@@ -286,9 +286,9 @@ if ( ! function_exists('ordinal_format'))
*/
function ordinal_format($number)
{
- if ( ! ctype_digit((string) $number) OR $number < 0)
+ if ( ! ctype_digit((string) $number) OR $number < 1)
{
- return FALSE;
+ return $number;
}
$last_digit = array(