From e620c033cba0ee04f8ed41372d7dd3cf5c9bd3b8 Mon Sep 17 00:00:00 2001 From: tjhunt Date: Mon, 22 May 2006 11:19:32 +0000 Subject: [PATCH] Fix an undefined variable notice. --- question/format.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/question/format.php b/question/format.php index 7125adf160e..6191333ed7d 100644 --- a/question/format.php +++ b/question/format.php @@ -68,8 +68,8 @@ class qformat_default { echo "

$count. ".stripslashes($question->questiontext)."

"; // 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);