Julian Prud'homme 19 years ago
parent 86e0485c9d
commit 5b3086462b
  1. 14
      main/exercice/multiple_answer.class.php

@ -176,15 +176,11 @@ class MultipleAnswer extends Question {
$weighting = trim($form -> getSubmitValue('weighting['.$i.']'));
$goodAnswer = trim($form -> getSubmitValue('correct['.$i.']'));
if($goodAnswer)
{
$nbrGoodAnswers++;
$weighting = abs($weighting);
if($weighting > 0)
{
$questionWeighting += $weighting;
}
}
$weighting = abs($weighting);
if($weighting > 0)
{
$questionWeighting += $weighting;
}
$objAnswer -> createAnswer($answer,$goodAnswer,$comment,$weighting,$i);

Loading…
Cancel
Save