Compatibility PHP8.1 , node can be null

This commit is contained in:
sparkyx 2022-12-12 17:11:17 +01:00
parent c727310432
commit 43e2ccb869

View file

@ -178,7 +178,8 @@ hr {width: 600px; background-color: #cccccc; border: 0px; height: 1px; color: #0
{
for ( $i = 0 ; $i < $a_table->length;$i++) {
$node=$a_table->item($i);
$node->attributes->getNamedItem("width")->nodeValue="100%";
$node_width = $node->attributes->getNamedItem("width");
if ( $node_width != null ) $node_width->nodeValue="100%";
}
}