Merge branch 'MDL-36223-24' of git://github.com/damyon/moodle into MOODLE_24_STABLE
This commit is contained in:
+2
-2
@@ -1042,11 +1042,11 @@ function assign_user_outline($course, $user, $coursemodule, $assignment) {
|
||||
$gradingitem = $gradinginfo->items[0];
|
||||
$gradebookgrade = $gradingitem->grades[$user->id];
|
||||
|
||||
if (!$gradebookgrade) {
|
||||
if (empty($gradebookgrade->str_long_grade)) {
|
||||
return null;
|
||||
}
|
||||
$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;
|
||||
|
||||
return $result;
|
||||
|
||||
Reference in New Issue
Block a user