Skip to content

Commit

Permalink
Codechecker warning fix: Invalid inline comment end char
Browse files Browse the repository at this point in the history
Codechecker warning fix: Invalid inline comment end char (line 433)
  • Loading branch information
KepaUrzelai authored Sep 17, 2024
1 parent 5b7e588 commit ee672f2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -430,9 +430,10 @@ function subcourse_update_grades($subcourse, $userid=0, $nullifnone=true) {
if ($subcourse->refcourse) {
$refgrades = subcourse_fetch_refgrades($subcourse->id, $subcourse->refcourse, false, $userid, false);
} else {
// Prevent empty referenced course id coding error
// Prevent empty referenced course id coding error.
return GRADE_UPDATE_FAILED;
}

if ($refgrades && $refgrades->grades) {
if (!empty($refgrades->localremotescale)) {
// Unable to fetch remote grades - local scale is used in the remote course.
Expand Down

0 comments on commit ee672f2

Please sign in to comment.