diff --git a/Cite.php b/Cite.php index 5408f2d26..e262d09ac 100644 --- a/Cite.php +++ b/Cite.php @@ -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 );