Skip to content

Commit

Permalink
Bug #966 - journal_grades should return NULL if no grade
Browse files Browse the repository at this point in the history
  • Loading branch information
moodler committed Jan 12, 2004
1 parent cf37cc5 commit 1909010
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions mod/journal/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -234,8 +234,7 @@ function journal_grades($journalid) {
$return->maxgrade = $journal->assessed;

} else if ($journal->assessed == 0) {
$return->grades = NULL;
$return->maxgrade = 0;
return NULL;

} else {
if ($scale = get_record("scale", "id", - $journal->assessed)) {
Expand Down

0 comments on commit 1909010

Please sign in to comment.