Skip to content
Browse files

Don't print description box if there is no description.

  • Loading branch information...
1 parent b91d6dc commit f4212b4f124118c6d445ec1b7aa9e9dff3b9d39d moodler committed Jan 12, 2004
Showing with 6 additions and 2 deletions.
  1. +6 −2 course/group.php
View
8 course/group.php
@@ -66,14 +66,18 @@
echo '<div align="center">';
print_group_picture($group, $course->id, true, false, false);
echo '</div>';
- 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 '<div align="center">';
print_group_picture($group, $course->id, true, false, false);
echo '</div>';
- print_simple_box($group->description, 'center', '50%');
+ if ($group->description) {
+ print_simple_box($group->description, 'center', '50%');
+ }
}
echo '<br />';

0 comments on commit f4212b4

Please sign in to comment.
Something went wrong with that request. Please try again.