Fixed plural count check

This commit is contained in:
Phill Sparks 2011-11-10 00:39:30 +00:00
parent 75ba2447f8
commit e84fb806f8
1 changed files with 2 additions and 2 deletions

View File

@ -138,7 +138,7 @@ class Inflector {
*/
public static function plural($value, $count = null)
{
if ( ! is_null($count) and $count <= 1) return $value;
if ( ! is_null($count) and $count == 1) return $value;
$irregular = array_flip(static::$irregular);
@ -200,4 +200,4 @@ private static function inflect($value, $cache, $irregular, $source)
return $value;
}
}
}