mirror of
https://github.com/moodle/moodle.git
synced 2025-08-06 17:36:38 +02:00
Bug #966 - journal_grades should return NULL if no grade
This commit is contained in:
parent
cf37cc5502
commit
19090101a9
1 changed files with 1 additions and 2 deletions
|
@ -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)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue