Skip to content

Commit

Permalink
Fix empty media tag causes unplayable media issue (#14).
Browse files Browse the repository at this point in the history
  • Loading branch information
kabalin committed Nov 13, 2019
1 parent 2fa24d0 commit f476fef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion classes/plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ private function get_options_from_media_tag($originalhtml) {
$mediattributes = self::$mappingfunction();
foreach ($mediattributes as $attrib => $option) {
if (isset($attributes[$attrib])) {
$playeroptions[$option] = $attributes[$attrib];
$playeroptions[$option] = $attributes[$attrib] ? $attributes[$attrib] : "true";
}
}
// Image is expected to be instance of moodle_url.
Expand Down

0 comments on commit f476fef

Please sign in to comment.