aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-Michel Vedrine <vedrine@vedrine.org>2019-05-24 19:07:18 +0200
committerJean-Michel Vedrine <vedrine@vedrine.org>2019-05-24 19:07:18 +0200
commitab5128112dece685aa1d62c668f29d7b863905ae (patch)
tree7b86847b15de6fe3e254c7f2de9d712d0328e4cd
parent78e02ce7adc2836c27b08e5ac4df919e420b156e (diff)
Uninitialized array in combinable
-rw-r--r--combinable/combinable.php1
1 files changed, 1 insertions, 0 deletions
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;