Fix a bug where there's no contributors but the format gets called anyways.
authorEvan Prodromou <evanprodromou@users.mediawiki.org>
Mon, 28 Jun 2004 21:47:59 +0000 (21:47 +0000)
committerEvan Prodromou <evanprodromou@users.mediawiki.org>
Mon, 28 Jun 2004 21:47:59 +0000 (21:47 +0000)
includes/Credits.php

index 4e30b81..4a68f2e 100644 (file)
@@ -153,7 +153,7 @@ function getContributorCredits($article, $cnt, $showIfMax) {
 
     # "Based on work by ..."
     
-    return wfMsg('othercontribs', $creds);
+    return (empty($creds)) ? '' : wfMsg('othercontribs', $creds);
 }
 
 function creditLink($user_name, $link_text = '') {