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:43:58 +02:00
parent 2bcef03b09
commit 21573d41f7
3 changed files with 3 additions and 3 deletions
+1 -1
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');
@@ -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') {
@@ -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') {