diff --git a/report/questioninstances/index.php b/report/questioninstances/index.php index b37402c19cf..719b867b357 100644 --- a/report/questioninstances/index.php +++ b/report/questioninstances/index.php @@ -69,8 +69,10 @@ if ($requestedqtype) { $othertypes = array_keys($qtypes); $key = array_search('missingtype', $othertypes); unset($othertypes[$key]); - list($sqlqtypetest, $params) = $DB->get_in_or_equal($othertypes, SQL_PARAMS_QM, '', false); + + [$sqlqtypetest, $sqlqtypetestparams] = $DB->get_in_or_equal($othertypes, SQL_PARAMS_QM, '', false); $sqlqtypetest = 'WHERE qtype ' . $sqlqtypetest; + $params = array_merge($params, $sqlqtypetestparams); } else if ($requestedqtype == '_all_') { $title = get_string('reportforallqtypes', 'report_questioninstances');