mirror of
https://github.com/moodle/moodle.git
synced 2025-08-08 10:26:40 +02:00
Merge branch 'MDL-36223-master' of git://github.com/damyon/moodle
This commit is contained in:
commit
b6009c5ca5
1 changed files with 2 additions and 2 deletions
|
@ -1130,11 +1130,11 @@ function assign_user_outline($course, $user, $coursemodule, $assignment) {
|
||||||
$gradingitem = $gradinginfo->items[0];
|
$gradingitem = $gradinginfo->items[0];
|
||||||
$gradebookgrade = $gradingitem->grades[$user->id];
|
$gradebookgrade = $gradingitem->grades[$user->id];
|
||||||
|
|
||||||
if (!$gradebookgrade) {
|
if (empty($gradebookgrade->str_long_grade)) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
$result = new stdClass();
|
$result = new stdClass();
|
||||||
$result->info = get_string('outlinegrade', 'assign', $gradebookgrade->grade);
|
$result->info = get_string('outlinegrade', 'assign', $gradebookgrade->str_long_grade);
|
||||||
$result->time = $gradebookgrade->dategraded;
|
$result->time = $gradebookgrade->dategraded;
|
||||||
|
|
||||||
return $result;
|
return $result;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue