Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

MDL-30577, fixing cmi.credit, cmi.mode are not evaluated correctly

  • Loading branch information...
commit ab94be6bd104401cb29f1ec69f5438556b35a97d 1 parent d0e016f
Mayank Gupta mayankgupta authored

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. +1 1  mod/scorm/api.php
2  mod/scorm/api.php
@@ -75,7 +75,7 @@
75 75 $userdata->student_id = addslashes_js($USER->username);
76 76 $userdata->student_name = addslashes_js($USER->lastname .', '. $USER->firstname);
77 77 $userdata->mode = 'normal';
78   -if (isset($mode)) {
  78 +if (!empty($mode)) {
79 79 $userdata->mode = $mode;
80 80 }
81 81 if ($userdata->mode == 'normal') {

0 comments on commit ab94be6

Please sign in to comment.
Something went wrong with that request. Please try again.