noalyss-commit
[Top][All Lists]
Advanced

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

[Noalyss-commit] [noalyss] 01/03: Compatibility 8.1


From: dwm
Subject: [Noalyss-commit] [noalyss] 01/03: Compatibility 8.1
Date: Sat, 8 Jul 2023 12:36:36 -0400 (EDT)

sparkyx pushed a commit to branch master
in repository noalyss.

commit 3f744d834a11beee97db2dabdce8535600c747c0
Author: sparkyx <danydb@noalyss.eu>
AuthorDate: Wed Jul 5 17:34:18 2023 +0200

    Compatibility 8.1
---
 include/class/document.class.php    | 2 +-
 include/lib/function_javascript.php | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/include/class/document.class.php b/include/class/document.class.php
index 704ac7959..6019fff10 100644
--- a/include/class/document.class.php
+++ b/include/class/document.class.php
@@ -305,7 +305,7 @@ class Document
 
                         // if the pattern if found we replace it
                         $value=$this->replace($tag, $p_array);
-                        if (strpos($value, 'ERROR')!=false)
+                        if (strpos($value??"", 'ERROR')!=false)
                             $value="";
                         /*
                          * Change type of cell to numeric
diff --git a/include/lib/function_javascript.php 
b/include/lib/function_javascript.php
index 8c30a80c9..087863698 100644
--- a/include/lib/function_javascript.php
+++ b/include/lib/function_javascript.php
@@ -2719,7 +2719,7 @@ function unescapebycharacter($str)
  */
 function escape_xml($p_xml)
 {
-    $xml=$p_xml;
+    $xml=$p_xml??"";
     $xml=str_replace('&','&amp;',$xml);
     $xml=str_replace('<','&lt;',$xml);
     $xml=str_replace('>','&gt;',$xml);
@@ -2737,7 +2737,7 @@ function escape_xml($p_xml)
  */
 function unescape_xml($p_xml)
 {
-    $xml=$p_xml;
+    $xml=$p_xml??"";
     $xml=str_replace('&amp;','&',$xml);
     $xml=str_replace('&lt;','<',$xml);
     $xml=str_replace('&gt;','>',$xml);



reply via email to

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