From ab5128112dece685aa1d62c668f29d7b863905ae Mon Sep 17 00:00:00 2001 From: Jean-Michel Vedrine Date: Fri, 24 May 2019 19:07:18 +0200 Subject: Uninitialized array in combinable --- combinable/combinable.php | 1 + 1 file changed, 1 insertion(+) (limited to 'combinable/combinable.php') diff --git a/combinable/combinable.php b/combinable/combinable.php index cbc06e7..650f49d 100644 --- a/combinable/combinable.php +++ b/combinable/combinable.php @@ -138,6 +138,7 @@ class qtype_combined_combinable_algebra extends qtype_combined_combinable_text_e public function data_to_form($context, $fileoptions) { $answers = array('answer' => array()); + $variables = array('variable' => array(), 'varmin' => array(), 'varmax' => array()); if ($this->questionrec !== null) { foreach ($this->questionrec->options->answers as $answer) { $answers['answer'][] = $answer->answer; -- cgit v1.2.3