Skip to content

Commit

Permalink
grade/report/grader MDL-20222 Define a variable as empty array to avo…
Browse files Browse the repository at this point in the history
…id notice when no users in gradebook
  • Loading branch information
moodler committed Sep 4, 2009
1 parent e14de6f commit 0a695c3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions grade/report/grader/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -372,6 +372,7 @@ public function load_users() {
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";
Expand Down

0 comments on commit 0a695c3

Please sign in to comment.