From 9b426d0380cb8f67c85c92ab0dda8ac8e6f08687 Mon Sep 17 00:00:00 2001 From: piers Date: Tue, 11 Nov 2008 23:11:39 +0000 Subject: [PATCH] MDL-16810 - Allow site configuration of scorm settings. Bad array subscript. --- mod/scorm/mod_form.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mod/scorm/mod_form.php b/mod/scorm/mod_form.php index f68e2590a1..9c41f1eaef 100644 --- a/mod/scorm/mod_form.php +++ b/mod/scorm/mod_form.php @@ -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]; } } } -- 2.39.5