fix query error due null see #7939

1.10.x
Julio 9 years ago
parent d39592316a
commit 8626034e3c
  1. 2
      main/exercice/calculated_answer.class.php

@ -234,7 +234,7 @@ class CalculatedAnswer extends Question
}
$this->save();
$objAnswer = new Answer($this->id);
$objAnswer->createAnswer($auxAnswer, 1, '', $this->weighting, null);
$objAnswer->createAnswer($auxAnswer, 1, '', $this->weighting, '');
$objAnswer->position = array();
$objAnswer->save();
}

Loading…
Cancel
Save