Merge "Cite::referencesFormatEntry: Avoid Undefined index: key"

This commit is contained in:
jenkins-bot 2016-08-03 01:16:12 +00:00 committed by Gerrit Code Review
commit 0f6a5a21af

View file

@ -809,7 +809,7 @@ class Cite {
if ( !isset( $val['count'] ) ) {
// this handles the case of section preview for list-defined references
return wfMessage( 'cite_references_link_many',
self::getReferencesKey( $key . "-" . $val['key'] ),
self::getReferencesKey( $key . "-" . ( isset( $val['key'] ) ? $val['key'] : '' ) ),
'',
$text
)->inContentLanguage()->plain();