Skip to content

Commit

Permalink
Merge branch 'MDL-36223-24' of git://github.com/damyon/moodle into MO…
Browse files Browse the repository at this point in the history
…ODLE_24_STABLE
  • Loading branch information
danpoltawski committed May 7, 2013
2 parents 217eecc + 4d69adc commit 54061d7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mod/assign/lib.php
Expand Up @@ -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;
Expand Down

0 comments on commit 54061d7

Please sign in to comment.