]> git.mjollnir.org Git - moodle.git/commitdiff
merged fix for 5916
authortoyomoyo <toyomoyo>
Mon, 26 Jun 2006 08:32:39 +0000 (08:32 +0000)
committertoyomoyo <toyomoyo>
Mon, 26 Jun 2006 08:32:39 +0000 (08:32 +0000)
lib/weblib.php

index 82f12df2116b2d78e430f9d3d70f4d084dc1af16..f17b775c48d3bf5c21722a58231d2a8e3930ce68 100644 (file)
@@ -2823,9 +2823,11 @@ function print_user($user, $course, $messageselect=false) {
     }
     echo '</div></td><td class="links">';
     //link to blogs
+    if ($CFG->bloglevel > 0) {
+       echo '<a href="'.$CFG->wwwroot.'/blog/index.php?userid='.$user->id.'">'.get_string('blogs','blog').'</a><br />';        
+    }
     
-    echo '<a href="'.$CFG->wwwroot.'/blog/index.php?userid='.$user->id.'">'.get_string('blogs','blog').'</a><br />';
-    if ($isteacher) {
+       if ($isteacher) {
         $timemidnight = usergetmidnight(time());
         echo '<a href="'. $CFG->wwwroot .'/course/user.php?id='. $course->id .'&amp;user='. $user->id .'">'. $string->activity .'</a><br />';
         if (!iscreator($user->id) or ($isadmin and !isadmin($user->id))) {  // Includes admins