Compatibility PHP8.1 , node can be null
This commit is contained in:
parent
c727310432
commit
43e2ccb869
1 changed files with 2 additions and 1 deletions
|
|
@ -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%";
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue