From 3dc868478b773d8946bb080e5574eaf6a71643e0 Mon Sep 17 00:00:00 2001 From: Dan Marsden Date: Tue, 1 Nov 2016 12:11:54 +1300 Subject: [PATCH] MDL-54575 scorm: fix typo in data_preprocessing function thanks to Mike Finch for the patch/report. --- 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 5f6e5b03a17..b53d09a85af 100644 --- a/mod/scorm/mod_form.php +++ b/mod/scorm/mod_form.php @@ -304,7 +304,7 @@ class mod_scorm_mod_form extends moodleform_mod { && ($defaultvalues['width'] <= 100)) { $defaultvalues['width'] .= '%'; } - if (isset($defaultvalues['width']) && (strpos($defaultvalues['height'], '%') === false) + if (isset($defaultvalues['height']) && (strpos($defaultvalues['height'], '%') === false) && ($defaultvalues['height'] <= 100)) { $defaultvalues['height'] .= '%'; }