Skip to content

Commit

Permalink
Update Html.php
Browse files Browse the repository at this point in the history
fix
  • Loading branch information
troosan committed Feb 12, 2021
1 parent bed1f7a commit 659d3d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/PhpWord/Shared/Html.php
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ protected static function parseInput($node, $element, &$styles)
$inputType = $attributes->getNamedItem('type')->value;
switch ($inputType) {
case 'checkbox':
$checked = ($checked = $attributes->getNamedItem('checked')) && $checked->value === "true" ? true : false;
$checked = ($checked = $attributes->getNamedItem('checked')) && $checked->value === 'true' ? true : false;
$textrun = $element->addTextRun($styles['paragraph']);
$textrun->addFormField('checkbox')->setValue($checked);
break;
Expand Down

0 comments on commit 659d3d7

Please sign in to comment.