From 656ee8c6a1d96e0222beccfb2441e825da6bab8b Mon Sep 17 00:00:00 2001 From: tjhunt Date: Mon, 22 May 2006 11:20:51 +0000 Subject: [PATCH] Fix an undefined variable notice. Merged from 1.6stable. --- question/format.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/question/format.php b/question/format.php index 7125adf160..6191333ed7 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); -- 2.39.5