Fix an undefined variable notice.

This commit is contained in:
tjhunt
2006-05-22 11:19:32 +00:00
parent d3b5c5f081
commit e620c033cb
+2 -2
View File
@@ -68,8 +68,8 @@ class qformat_default {
echo "<hr /><p><b>$count</b>. ".stripslashes($question->questiontext)."</p>";
// check for answer grades validity (must match fixed list of grades)
$fractions = $question->fraction;
if (!empty($fractions)) {
if (!empty($question->fraction)) {
$fractions = $question->fraction;
$answersvalid = true; // in case they are!
foreach ($fractions as $key => $fraction) {
$newfraction = match_grade_options($gradeoptionsfull, $fraction, $matchgrades);