From 827c0e138aa5b9d84fe9e5cec648e94d2541dbb3 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Mon, 28 Jun 2004 21:47:59 +0000 Subject: [PATCH] Fix a bug where there's no contributors but the format gets called anyways. --- includes/Credits.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 = '') { -- 2.20.1