mirror of
https://github.com/moodle/moodle.git
synced 2025-01-30 03:58:34 +01:00
MDL-65250 core: Fix some undefined variables in compact()
Since PHP 7.3 they throw a PHP Notice.
This commit is contained in:
parent
280cfdf05c
commit
6f6ea8c32d
@ -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') {
|
||||
|
Loading…
x
Reference in New Issue
Block a user