Forum


Replies: 1   Views: 952
Malformed html with a not valid color returns a php warning
Topic closed:
Please note this is an old forum thread. Information in this post may be out-to-date and/or erroneous.
Every phpdocx version includes new features and improvements. Previously unsupported features may have been added to newer releases, or past issues may have been corrected.
We encourage you to download the current phpdocx version and check the Documentation available.

Posted by admin  · 13-12-2021 - 11:39

Hello,

Thanks for the detailed feedback.

Using not valid attributes/values when importing HTML/CSS may return a warning as your case details when using a not valid color. The lastest release of phpdocx handles this specific case to avoid the PHP warning.

phpdocx 12 includes the following change that sets an empty color if the variable is not set in the _get_border method:

$color = $this->__get("border_" . $side . "_color");
if (!isset($color['hex'])) {
  $color['hex'] = '';
}

Regards.