mirror of
https://github.com/moodle/moodle.git
synced 2025-04-27 03:14:20 +02:00
grade/report/grader MDL-20222 Define a variable as empty array to avoid notice when no users in gradebook
This commit is contained in:
parent
e14de6f979
commit
0a695c36bb
@ -372,6 +372,7 @@ class grade_report_grader extends grade_report {
|
||||
if (empty($this->users)) {
|
||||
$this->userselect = '';
|
||||
$this->users = array();
|
||||
$this->userselect_params = array();
|
||||
} else {
|
||||
list($usql, $params) = $DB->get_in_or_equal(array_keys($this->users), SQL_PARAMS_NAMED, 'usid0');
|
||||
$this->userselect = "AND g.userid $usql";
|
||||
|
Loading…
x
Reference in New Issue
Block a user