From 43e2ccb869caa05c12f4b68645e951c1129508b2 Mon Sep 17 00:00:00 2001 From: sparkyx Date: Mon, 12 Dec 2022 17:11:17 +0100 Subject: [PATCH] Compatibility PHP8.1 , node can be null --- include/admin_repo.inc.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/admin_repo.inc.php b/include/admin_repo.inc.php index fad1ee4c4..70acdbaa2 100644 --- a/include/admin_repo.inc.php +++ b/include/admin_repo.inc.php @@ -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%"; } }