From 0dcf112b6752c4b0d4e588703db25211d7fa55d9 Mon Sep 17 00:00:00 2001 From: jerome mouneyrac Date: Tue, 4 May 2010 03:47:44 +0000 Subject: [PATCH] community MDL-19314 do not display download message if no download message --- blocks/community/communitycourse.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/blocks/community/communitycourse.php b/blocks/community/communitycourse.php index dc4194a71e4..779a5b220e7 100644 --- a/blocks/community/communitycourse.php +++ b/blocks/community/communitycourse.php @@ -86,7 +86,9 @@ if (!empty($fromform)) { // OUTPUT echo $OUTPUT->header(); echo $OUTPUT->heading(get_string('addcommunitycourse', 'block_community'), 3, 'main'); -echo $downloadmessage; +if (!empty($downloadmessage)) { + echo $downloadmessage; +} $hubselectorform->display(); echo $renderer->course_list($courses, $huburl); echo $OUTPUT->footer(); \ No newline at end of file