isteacher() was called incorrectly (bug #2379)

This commit is contained in:
moodler
2005-01-13 02:55:38 +00:00
parent 5cba81fd45
commit 7231ff0781
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -765,7 +765,7 @@ function assignment_print_recent_mod_activity($activity, $course, $detail=false)
}
if (isteacher($USER)) {
if (isteacher($course)) {
$grades = "(" . $activity->content->grade . " / " . $activity->content->maxgrade . ") ";
$assignment->id = $activity->instance;
+1 -1
View File
@@ -1830,7 +1830,7 @@ function quiz_print_recent_mod_activity($activity, $course, $detail=false) {
}
if (isteacher($USER)) {
if (isteacher($course)) {
$grades = "(" . $activity->content->sumgrades . " / " . $activity->content->maxgrade . ") ";
echo "<a href=\"$CFG->wwwroot/mod/quiz/review.php?q="
. $activity->instance . "&attempt="