Skip to content

Commit 659d3d7

Browse files
authored
Update Html.php
fix
1 parent bed1f7a commit 659d3d7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/PhpWord/Shared/Html.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ protected static function parseInput($node, $element, &$styles)
284284
$inputType = $attributes->getNamedItem('type')->value;
285285
switch ($inputType) {
286286
case 'checkbox':
287-
$checked = ($checked = $attributes->getNamedItem('checked')) && $checked->value === "true" ? true : false;
287+
$checked = ($checked = $attributes->getNamedItem('checked')) && $checked->value === 'true' ? true : false;
288288
$textrun = $element->addTextRun($styles['paragraph']);
289289
$textrun->addFormField('checkbox')->setValue($checked);
290290
break;

0 commit comments

Comments
 (0)