From: tjhunt Date: Mon, 22 May 2006 11:20:51 +0000 (+0000) Subject: Fix an undefined variable notice. Merged from 1.6stable. X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=656ee8c6a1d96e0222beccfb2441e825da6bab8b;p=moodle.git Fix an undefined variable notice. Merged from 1.6stable. --- 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);