noalyss-commit
[Top][All Lists]
Advanced

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

[Noalyss-commit] [noalyss] 05/10: Fix document generate


From: dwm
Subject: [Noalyss-commit] [noalyss] 05/10: Fix document generate
Date: Wed, 9 Aug 2023 09:20:22 -0400 (EDT)

sparkyx pushed a commit to branch master
in repository noalyss.

commit 2a1a971636f58d51a3ccfad746b341cd94c322c3
Author: sparkyx <danydb@noalyss.eu>
AuthorDate: Mon Jul 31 12:00:11 2023 +0200

    Fix document generate
---
 include/class/document.class.php | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/include/class/document.class.php b/include/class/document.class.php
index d32af6d63..726bdd36b 100644
--- a/include/class/document.class.php
+++ b/include/class/document.class.php
@@ -1800,6 +1800,7 @@ class Document
     static function replace_value($p_buffer, $p_pattern, $p_value, 
$p_limit=-1, $p_type='OOo')
     {
         $check=$p_pattern;
+        $p_value=$p_value??'';
         $check=str_replace(['&lt;', '&gt;', '<', '>', '='], "", $check);
         if (preg_replace('/[^[:alnum:]^_]/', '', $check)!=$check)
         {
@@ -1822,7 +1823,7 @@ class Document
         }
         if ($count==0)
         {
-           $p_value='';
+
             if ($p_type=='OOo')
             {
                 $p_value=noalyss_str_replace('&', '&amp;', $p_value);



reply via email to

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