mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Cite
synced 2024-11-24 15:04:02 +00:00
Fix crasher from empty references list
* See on /en.wikipedia.org/v3/page/html/Manuela_Maleeva/800363347
* Folow up to 74acc71e
Change-Id: Iae89d4b0073dafce5fe4c28dc94fd6d5779d71c6
This commit is contained in:
parent
74acc71e98
commit
ab0c40f496
|
@ -537,7 +537,7 @@ References.prototype.insertReferencesIntoDOM = function(refsNode, refsData, nest
|
|||
if (responsiveWrap) {
|
||||
var div = refsNode.ownerDocument.createElement('div');
|
||||
div.classList.add('mw-references-wrap');
|
||||
if (refGroup.refs.length > rrOpts.threshold) {
|
||||
if (refGroup && refGroup.refs.length > rrOpts.threshold) {
|
||||
div.classList.add('mw-references-columns');
|
||||
}
|
||||
refsNode.parentNode.insertBefore(div, refsNode);
|
||||
|
|
Loading…
Reference in a new issue