Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-6108

undefined constans in scorm_grade_user function

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Trivial Trivial
    • 1.6.1
    • 1.6
    • SCORM
    • None
    • All
    • MOODLE_16_STABLE
    • MOODLE_16_STABLE

      I have problem with Moodle 1.6

      It was used the undefined constants like 'VALUESCOES' in moodle/mod/scorm/locallib.php scorm_grade_user function.

      I think 'GRADESCOES' is correct.

      And I think it is correct to change the constants of 'VALUEXXXX' to 'GRADEXXXX' as follows.

      switch ($grademethod) {

      case GRADEHIGHEST:

      return $scores->max;

      break;

      case GRADEAVERAGE:

      if ($scores->values > 0)

      { return $scores->sum/$scores->values; }

      else

      { return 0; }

      break;

      case GRADESUM:

      return $scores->sum;

      break;

      case GRADESCOES:

      return $scores->scoes;

      break;

      }

            upo Roberto Pinna
            imported Imported (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.