Language::convertPlural: check if matching form exists
authorKevin Israel <pleasestand@live.com>
Sat, 25 May 2013 23:19:55 +0000 (19:19 -0400)
committerKevin Israel <pleasestand@live.com>
Sat, 25 May 2013 23:30:53 +0000 (19:30 -0400)
commitd510d0c0c7dd99340bbdd97b9780d928e87b6d9d
treed8968667365bc1ebf621a411d99236e4b1a0d0fd
parentc58873fb4213447615761a55fd2be72fa53f8ec2
Language::convertPlural: check if matching form exists

It is possible that only explicit plural forms are specified, and
therefore, it is possible that none match. However, handling of
explicit forms came after the count( $forms ) check, so input such
as {{PLURAL:|1=}} would trigger a "PHP Notice: Undefined offset: -1".

Change-Id: I8494de8ceb9e0cfff7203c69c21f02b3731275af
Follows-Up: I50eb0c6d1c02ca936848d310de625ed1fe43d91a
RELEASE-NOTES-1.22
languages/Language.php
tests/phpunit/languages/LanguageTest.php