From: Evan Prodromou Date: Mon, 28 Jun 2004 21:47:59 +0000 (+0000) Subject: Fix a bug where there's no contributors but the format gets called anyways. X-Git-Tag: 1.5.0alpha1~2748 X-Git-Url: http://git.cyclocoop.org/%24href?a=commitdiff_plain;h=827c0e138aa5b9d84fe9e5cec648e94d2541dbb3;p=lhc%2Fweb%2Fwiklou.git Fix a bug where there's no contributors but the format gets called anyways. --- diff --git a/includes/Credits.php b/includes/Credits.php index 4e30b81582..4a68f2e556 100644 --- a/includes/Credits.php +++ b/includes/Credits.php @@ -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 = '') {