MDL-65250 core: Fix some undefined variables in compact()

Since PHP 7.3 they throw a PHP Notice.
This commit is contained in:
Eloy Lafuente (stronk7) 2019-04-03 02:42:45 +02:00
parent 280cfdf05c
commit 6f6ea8c32d
3 changed files with 3 additions and 3 deletions

View File

@ -53,7 +53,7 @@ require_capability('moodle/course:request', $context);
// Set up the form.
$data = course_request::prepare();
$requestform = new course_request_form($url, compact('editoroptions'));
$requestform = new course_request_form($url);
$requestform->set_data($data);
$strtitle = get_string('courserequest');

View File

@ -643,7 +643,7 @@ class report extends \mod_scorm\report {
}
// Show preferences form irrespective of attempts are there to report or not.
if (!$download) {
$mform->set_data(compact('detailedrep', 'pagesize', 'attemptsmode'));
$mform->set_data(compact('pagesize', 'attemptsmode'));
$mform->display();
}
if ($download == 'Excel' or $download == 'ODS') {

View File

@ -642,7 +642,7 @@ class report extends \mod_scorm\report {
}
// Show preferences form irrespective of attempts are there to report or not.
if (!$download) {
$mform->set_data(compact('detailedrep', 'pagesize', 'attemptsmode'));
$mform->set_data(compact('pagesize', 'attemptsmode'));
$mform->display();
}
if ($download == 'Excel' or $download == 'ODS') {