* (bug 9807) Don't return invalid empty HTML list from <references/> if no <ref>s present

This commit is contained in:
Brion Vibber 2007-05-08 21:20:48 +00:00
parent ba49232be3
commit 775ddb2f1c

View file

@ -343,8 +343,10 @@ function wfCite() {
* @return string XHTML ready for output
*/
function referencesFormat() {
$ent = array();
if ( count( $this->mRefs ) == 0 )
return '';
$ent = array();
foreach ( $this->mRefs as $k => $v )
$ent[] = $this->referencesFormatEntry( $k, $v );