]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-16810 - Allow site configuration of scorm settings. Bad array subscript.
authorpiers <piers>
Tue, 11 Nov 2008 23:11:39 +0000 (23:11 +0000)
committerpiers <piers>
Tue, 11 Nov 2008 23:11:39 +0000 (23:11 +0000)
mod/scorm/mod_form.php

index f68e2590a17b4caa16a78a8e5d203de7f8dd16d0..9c41f1eaef8f2b9d83cd1607dbfc0434637977ac 100644 (file)
@@ -347,7 +347,7 @@ class mod_scorm_mod_form extends moodleform_mod {
             foreach ($options as $option) {
                 $opt = explode('=', $option);
                 if (isset($opt[1])) {
-                    $default_values[$opt][0] = $opt[1];
+                    $default_values[$opt[0]] = $opt[1];
                 }
             }
         }