From 5116f2285dc1fa8d4dec413dc176cb7848851cd4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luca=20B=C3=B6sch?= Date: Thu, 18 Jan 2024 18:14:19 +0100 Subject: [PATCH] Circumvent number on string error, resolves #538. --- classes/question/numerical.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/question/numerical.php b/classes/question/numerical.php index f6e6a36c..994e000b 100644 --- a/classes/question/numerical.php +++ b/classes/question/numerical.php @@ -83,7 +83,7 @@ protected function question_survey_display($response, $descendantsdata, $blankqu // Numeric. $questiontags = new \stdClass(); $precision = $this->precise; - $a = ''; + $a = new \stdClass(); if (isset($response->answers[$this->id][0])) { $mynumber = $response->answers[$this->id][0]->value; if ($mynumber != '') {