From efe95a6f1eff75b570305bc57ab30d2727d31378 Mon Sep 17 00:00:00 2001 From: Petr Skoda Date: Sat, 18 Sep 2010 13:43:18 +0000 Subject: [PATCH] fixed default_valueS typo --- mod/scorm/mod_form.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/mod/scorm/mod_form.php b/mod/scorm/mod_form.php index 1cfff5c29af..685b2abc65a 100644 --- a/mod/scorm/mod_form.php +++ b/mod/scorm/mod_form.php @@ -258,11 +258,11 @@ class mod_scorm_mod_form extends moodleform_mod { if (isset($default_values['grademethod'])) { $default_values['grademethod'] = intval($default_values['grademethod']); } - if (isset($default_value['width']) && (strpos($default_value['width'],'%') === false) && ($default_value['width'] <= 100)) { - $default_value['width'] .= '%'; + if (isset($default_values['width']) && (strpos($default_values['width'],'%') === false) && ($default_values['width'] <= 100)) { + $default_values['width'] .= '%'; } - if (isset($default_value['width']) && (strpos($default_value['height'],'%') === false) && ($default_value['height'] <= 100)) { - $default_value['height'] .= '%'; + if (isset($default_values['width']) && (strpos($default_values['height'],'%') === false) && ($default_values['height'] <= 100)) { + $default_values['height'] .= '%'; } $scorms = get_all_instances_in_course('scorm', $COURSE); $coursescorm = current($scorms); -- 2.43.0