From 2854559b929592bc11aab39f89fe65cc9fdbda8a Mon Sep 17 00:00:00 2001 From: toyomoyo Date: Mon, 6 Nov 2006 02:32:35 +0000 Subject: [PATCH] taking out extra isteahcer() --- user/view.php | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/user/view.php b/user/view.php index 4b24678b76d..0934815d1ad 100644 --- a/user/view.php +++ b/user/view.php @@ -279,21 +279,19 @@ print_row(get_string('msnid').':', s($user->msn)); } - if (isteacher($course->id)) { - if ($mycourses = get_my_courses($user->id)) { - $courselisting = ''; - foreach ($mycourses as $mycourse) { - if ($mycourse->visible and $mycourse->category) { - if ($mycourse->id != $course->id){ - $courselisting .= "wwwroot/user/view.php?id=$user->id&course=$mycourse->id\">$mycourse->fullname, "; - } - else { - $courselisting .= "$mycourse->fullname, "; - } + if ($mycourses = get_my_courses($user->id)) { + $courselisting = ''; + foreach ($mycourses as $mycourse) { + if ($mycourse->visible and $mycourse->category) { + if ($mycourse->id != $course->id){ + $courselisting .= "wwwroot/user/view.php?id=$user->id&course=$mycourse->id\">$mycourse->fullname, "; + } + else { + $courselisting .= "$mycourse->fullname, "; } } - print_row(get_string('courses').':', rtrim($courselisting,', ')); } + print_row(get_string('courses').':', rtrim($courselisting,', ')); } if (!isset($hiddenfields['lastaccess'])) {