diff --git a/question/type/calculated/questiontype.php b/question/type/calculated/questiontype.php index a19254f1450..d9eb54f7731 100644 --- a/question/type/calculated/questiontype.php +++ b/question/type/calculated/questiontype.php @@ -576,6 +576,7 @@ class question_calculated_qtype extends question_dataset_dependent_questiontype } function save_dataset_items($question, $fromform){ + global $CFG ; // max datasets = 100 items $max100 = 100 ; $regenerate = optional_param('forceregeneration', 0, PARAM_BOOL);