isteacher() was called incorrectly (bug #2379)
This commit is contained in:
@@ -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
@@ -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="
|
||||
|
||||
Reference in New Issue
Block a user