From 775ddb2f1cdae684f57e93c7992ab3ede889485e Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Tue, 8 May 2007 21:20:48 +0000 Subject: [PATCH] * (bug 9807) Don't return invalid empty HTML list from if no s present --- Cite.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 );