Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
troosan committed Feb 11, 2021
1 parent 8bb0b73 commit a382f9d
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();
$textrun->addFormField('checkbox')->setValue($checked);
break;
Expand Down

0 comments on commit a382f9d

Please sign in to comment.