diff --git a/lib/weblib.php b/lib/weblib.php
index eeefb1180c3..1ae5aa213a3 100644
--- a/lib/weblib.php
+++ b/lib/weblib.php
@@ -2447,7 +2447,7 @@ function print_user_picture($userid, $courseid, $picture, $size=0, $returnstring
' border="0" width="'. $size .'" height="'. $size .'" alt="" />';
}
} else { // Print default user pictures (use theme version if available)
- $output .= "
pixpath/u/$file.png\"".
+ $output .= "
pixpath/u/$file.png\"".
" border=\"0\" width=\"$size\" height=\"$size\" alt=\"\" />";
}
if ($link) {