noalyss-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Noalyss-commit] [noalyss] 07/32: Compatibility PHP8.1 , node can be nul


From: Dany De Bontridder
Subject: [Noalyss-commit] [noalyss] 07/32: Compatibility PHP8.1 , node can be null
Date: Thu, 5 Jan 2023 14:18:29 -0500 (EST)

sparkyx pushed a commit to branch devel
in repository noalyss.

commit 43e2ccb869caa05c12f4b68645e951c1129508b2
Author: sparkyx <danydb@noalyss.eu>
AuthorDate: Mon Dec 12 17:11:17 2022 +0100

    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%";
 
         }
     }



reply via email to

[Prev in Thread] Current Thread [Next in Thread]