diff --git a/user/tabs.php b/user/tabs.php index 891509998cb..638d7595d64 100644 --- a/user/tabs.php +++ b/user/tabs.php @@ -7,7 +7,7 @@ error('You cannot call this script in that way'); } - print_heading(fullname($user, isteacher($course))); + print_heading(fullname($user, isteacher($course->id))); //if (!empty($USER) and (isteacher($course->id) or (($USER->id == $user->id) and !isguest()))) { // tabs are shown