Fixed incorrect usage of isteacher(), didn't work and threw a warning.

This commit is contained in:
defacer
2005-03-26 18:34:55 +00:00
parent c2aa460fe6
commit 5bae88b686
+1 -1
View File
@@ -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