]> git.mjollnir.org Git - moodle.git/commitdiff
Bug #5472 - Download quiz grades in Excel format does not show correct foelds; merged...
authorskodak <skodak>
Fri, 26 May 2006 06:48:25 +0000 (06:48 +0000)
committerskodak <skodak>
Fri, 26 May 2006 06:48:25 +0000 (06:48 +0000)
mod/quiz/report/overview/report.php

index a6fe18ed2730af8097b025f8e9e02528edcc80c3..7b578ba754adcb2454c3cd7b6ff97eec8f1898de 100644 (file)
@@ -63,7 +63,9 @@ class quiz_report extends quiz_default_report {
             $a->studentnum = count_records_select('quiz_attempts', "quiz = '$quiz->id' AND preview = '0'", 'COUNT(DISTINCT userid)');
             $a->studentstring  = $course->students;
     
-            notify(get_string('numattempts', 'quiz', $a));
+            if (!$download) { //do not print notices when downloading
+                notify(get_string('numattempts', 'quiz', $a));
+            }
         }
     /// Check to see if groups are being used in this quiz
         if ($groupmode = groupmode($course, $cm)) {   // Groups are being used
@@ -489,6 +491,7 @@ class quiz_report extends quiz_default_report {
             }
             elseif ($download == 'Excel') {
                 $workbook->close();
+                exit;
             }
             elseif ($download == 'CSV') {
                 exit;