]> git.mjollnir.org Git - moodle.git/commitdiff
Don't print group pictures if none is defined
authormoodler <moodler>
Tue, 10 Feb 2004 14:36:12 +0000 (14:36 +0000)
committermoodler <moodler>
Tue, 10 Feb 2004 14:36:12 +0000 (14:36 +0000)
lib/weblib.php

index 15f29e240578218bc1d3475f8676b1030af23273..0447de49d640dcaa9152d3302cee68604038954e 100644 (file)
@@ -1242,9 +1242,6 @@ function print_group_picture($group, $courseid, $large=false, $returnstring=fals
             $output .= "<img align=\"absmiddle\" src=\"$CFG->wwwroot/user/pixgroup.php?file=/$group->id/$file.jpg\"".
                        " border=\"0\" width=\"$size\" height=\"$size\" alt=\"\" />";
         }
-    } else {         // Print default user pictures (use theme version if available)
-        $output .= "<img align=\"absmiddle\" src=\"$CFG->pixpath/g/$file.png\"".
-                   " border=\"0\" width=\"$size\" height=\"$size\" alt=\"\" />";
     }
     if ($link) {
         $output .= "</a>";