Index: branches/5.2.x/core/units/helpers/multilanguage_helper.php =================================================================== diff -u -N -r15328 -r15428 --- branches/5.2.x/core/units/helpers/multilanguage_helper.php (.../multilanguage_helper.php) (revision 15328) +++ branches/5.2.x/core/units/helpers/multilanguage_helper.php (.../multilanguage_helper.php) (revision 15428) @@ -1,6 +1,6 @@ 1 ? substr($number, -2, 1) : false; - $phrase_type = '5'; + $phrase_type = 5; if ( $last_but_one_digit != 1 ) { - if ( $last_digit == 1 ) { - $phrase_type = '1'; + if ( $last_digit >= 1 && $last_digit <= 4 ) { + $phrase_type = $last_digit; } - elseif ( $last_digit >= 2 && $last_digit <= 4 ) { - $phrase_type = '2'; - } } - return $phrase_type; + return (string)$phrase_type; } }