From 8626034e3c34cc8eed72972cd0c7f42a3273557d Mon Sep 17 00:00:00 2001 From: Julio Date: Wed, 4 Nov 2015 08:41:09 +0100 Subject: [PATCH] fix query error due null see #7939 --- main/exercice/calculated_answer.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main/exercice/calculated_answer.class.php b/main/exercice/calculated_answer.class.php index 81589ce1b8..c832adfd2a 100644 --- a/main/exercice/calculated_answer.class.php +++ b/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(); }