Permalink
Browse files

Merge branch 'MDL-36223-24' of git://github.com/damyon/moodle into MO…

…ODLE_24_STABLE
  • Loading branch information...
2 parents 217eecc + 4d69adc commit 54061d7cbf424bb3821c61a8f3b56757c8fe1c92 @danpoltawski danpoltawski committed May 7, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 mod/assign/lib.php
View
@@ -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;

0 comments on commit 54061d7

Please sign in to comment.