Skip to content
Browse files

Fix ordering problem with question number column headings.

  • Loading branch information...
1 parent aedf2f0 commit 404518eb8579b0a38fd12628d4e1e2453dff83e9 tjhunt committed Sep 13, 2006
Showing with 3 additions and 3 deletions.
  1. +3 −3 mod/quiz/report/overview/report.php
View
6 mod/quiz/report/overview/report.php
@@ -202,7 +202,7 @@ function display($quiz, $cm, $course) {
$headers[] = get_string('grade', 'quiz').'/'.$quiz->grade;
}
if($detailedmarks) {
- foreach ($questionids as $key=>$id) {
+ foreach ($questionids as $id) {
$headers[] = '#'.$questions[$id]->number;
}
}
@@ -230,8 +230,8 @@ function display($quiz, $cm, $course) {
$headers .= "\t".get_string('grade', 'quiz')."/".$quiz->grade;
}
if($detailedmarks) {
- foreach ($questions as $question) {
- $headers .= "\t#".$question->number;
+ foreach ($questionids as $id) {
+ $headers .= "\t#".$questions[$id]->number;
}
}
if ($hasfeedback) {

0 comments on commit 404518e

Please sign in to comment.
Something went wrong with that request. Please try again.