Add explicit array cast in Language::getGenderNsText

Similiar to r102414

Bug: T43194
Change-Id: I868b31b3862539d4782912d5b6e5d3ce5d9b4f60
This commit is contained in:
umherirrender 2015-02-21 10:58:01 +01:00 committed by Amire80
parent acfe382ef5
commit 3800b2fff0

View file

@ -587,7 +587,7 @@ class Language {
global $wgExtraGenderNamespaces;
$ns = $wgExtraGenderNamespaces +
self::$dataCache->getItem( $this->mCode, 'namespaceGenderAliases' );
(array)self::$dataCache->getItem( $this->mCode, 'namespaceGenderAliases' );
return isset( $ns[$index][$gender] ) ? $ns[$index][$gender] : $this->getNsText( $index );
}