Skip to content

Commit

Permalink
MDL-10759 - Bogus get_context_instance call in quiz_print_recent_mod_…
Browse files Browse the repository at this point in the history
…activity. Merged from MOODLE_17_STABLE.
  • Loading branch information
tjhunt committed Aug 8, 2007
1 parent 4bcf2c2 commit 4514f4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mod/quiz/lib.php
Expand Up @@ -435,7 +435,7 @@ function quiz_print_recent_mod_activity($activity, $course, $detail=false) {

}

if (has_capability('mod/quiz:grade', get_context_instance(CONTEXT_MODULE, $course))) {
if (has_capability('mod/quiz:grade', get_context_instance(CONTEXT_MODULE, $activity->instance))) {
$grades = "(" . $activity->content->sumgrades . " / " . $activity->content->maxgrade . ") ";
echo "<a href=\"$CFG->wwwroot/mod/quiz/review.php?q="
. $activity->instance . "&amp;attempt="
Expand Down

0 comments on commit 4514f4b

Please sign in to comment.