Browse files

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

  • Loading branch information...
1 parent d0e016f commit ab94be6bd104401cb29f1ec69f5438556b35a97d @mayankgupta mayankgupta committed Dec 4, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 mod/scorm/api.php
View
2 mod/scorm/api.php
@@ -75,7 +75,7 @@
$userdata->student_id = addslashes_js($USER->username);
$userdata->student_name = addslashes_js($USER->lastname .', '. $USER->firstname);
$userdata->mode = 'normal';
-if (isset($mode)) {
+if (!empty($mode)) {
$userdata->mode = $mode;
}
if ($userdata->mode == 'normal') {

0 comments on commit ab94be6

Please sign in to comment.