Home
Documentation
Downloads
Demo
Tracker
Development
Translation
Moodle.net
Search
projects
/
moodle.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d0e016f
)
MDL-30577, fixing cmi.credit, cmi.mode are not evaluated correctly
author
Mayank Gupa
<mayankgupta2005@gmail.com>
Sun, 4 Dec 2011 23:14:28 +0000
(
04:44
+0530)
committer
Mayank Gupa
<mayankgupta2005@gmail.com>
Sun, 4 Dec 2011 23:14:28 +0000
(
04:44
+0530)
mod/scorm/api.php
patch
|
blob
|
blame
|
history
diff --git
a/mod/scorm/api.php
b/mod/scorm/api.php
index
88875ce
..
1acc5ef
100644
(file)
--- a/
mod/scorm/api.php
+++ b/
mod/scorm/api.php
@@
-75,7
+75,7
@@
if ($usertrack = scorm_get_tracks($scoid, $USER->id, $attempt)) {
$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') {