Silenced notices produced by flush() and ob_flush() in regrading code.

This commit is contained in:
mindforge
2005-09-26 09:10:52 +00:00
parent b5ee139f78
commit 254fdebbc9
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -1346,7 +1346,7 @@ function quiz_save_question_session(&$question, &$state) {
if (strlen($state->raw_grade) > 10 && floatval($state->raw_grade) < 1) {
$state->raw_grade = strval(round($state->raw_grade,2));
}
// Save the state
if (isset($state->update)) {
update_record('quiz_states', $state);
@@ -1547,7 +1547,7 @@ function quiz_regrade_question_in_attempt($question, $attempt, $quiz=false, $ver
} else {
echo ' #'.$attempt->id;
}
echo "\n"; flush(); ob_flush();
echo "\n"; @flush(); @ob_flush();
}
return true;
+1 -1
View File
@@ -44,7 +44,7 @@ class quiz_report extends quiz_default_report {
}
echo '<br/ >';
// the following makes sure that the output is sent immediately.
flush();ob_flush();
@flush();@ob_flush();
}
/// Loop through all questions and recalculate $attempt->sumgrade