From f4212b4f124118c6d445ec1b7aa9e9dff3b9d39d Mon Sep 17 00:00:00 2001 From: moodler Date: Mon, 12 Jan 2004 17:20:41 +0000 Subject: [PATCH] Don't print description box if there is no description. --- course/group.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/course/group.php b/course/group.php index c22dac1704..654c3ba8c3 100644 --- a/course/group.php +++ b/course/group.php @@ -66,14 +66,18 @@ echo '
'; print_group_picture($group, $course->id, true, false, false); echo '
'; - print_simple_box($group->description, 'center', '50%'); + if ($group->description) { + print_simple_box($group->description, 'center', '50%'); + } } else { // Just display the information print_heading($group->name); echo '
'; print_group_picture($group, $course->id, true, false, false); echo '
'; - print_simple_box($group->description, 'center', '50%'); + if ($group->description) { + print_simple_box($group->description, 'center', '50%'); + } } echo '
'; -- 2.39.5