Commit e84fb806 by Phill Sparks

Fixed plural count check

parent 75ba2447
......@@ -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 @@ class Inflector {
return $value;
}
}
\ No newline at end of file
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment