Skip to content

Commit

Permalink
fix for MDL-6895, adding optional_param, thanks for the patch
Browse files Browse the repository at this point in the history
  • Loading branch information
toyomoyo committed Oct 30, 2006
1 parent 8300665 commit 828a4b2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions grade/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
$user = optional_param('user', -1);
$group = optional_param('group', -1);
$action = optional_param('action', 'grades');
$cview = optional_param('cview', -1);

if (!$course = get_record('course', 'id', $id)) {
error('No course ID');
Expand Down
2 changes: 1 addition & 1 deletion grade/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -3019,6 +3019,6 @@ function grade_get_course_students($courseid) {
notify ('no roles defined in admin->appearance->graderoles');
return false; // no roles to displayreturn false;
}
return $students;
return isset($students)?$students:'';
}
?>

0 comments on commit 828a4b2

Please sign in to comment.