MDL-54575 scorm: fix typo in data_preprocessing function

thanks to Mike Finch for the patch/report.
This commit is contained in:
Dan Marsden 2016-11-01 12:11:54 +13:00
parent 577bd70d38
commit 3dc868478b

View file

@ -304,7 +304,7 @@ class mod_scorm_mod_form extends moodleform_mod {
&& ($defaultvalues['width'] <= 100)) { && ($defaultvalues['width'] <= 100)) {
$defaultvalues['width'] .= '%'; $defaultvalues['width'] .= '%';
} }
if (isset($defaultvalues['width']) && (strpos($defaultvalues['height'], '%') === false) if (isset($defaultvalues['height']) && (strpos($defaultvalues['height'], '%') === false)
&& ($defaultvalues['height'] <= 100)) { && ($defaultvalues['height'] <= 100)) {
$defaultvalues['height'] .= '%'; $defaultvalues['height'] .= '%';
} }