[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(['<', '>', '<', '>', '='], "", $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('&', '&', $p_value);
- [Noalyss-commit] [noalyss] branch master updated (3a1ebb55c -> b77ac34d8), dwm, 2023/08/09
- [Noalyss-commit] [noalyss] 08/10: Remove VAT_CODE in printing ledgers, dwm, 2023/08/09
- [Noalyss-commit] [noalyss] 09/10: Improve PHPUNIT, dwm, 2023/08/09
- [Noalyss-commit] [noalyss] 01/10: Search with VAT : filter, dwm, 2023/08/09
- [Noalyss-commit] [noalyss] 07/10: PHP8.1 comptability deprecated null string, dwm, 2023/08/09
- [Noalyss-commit] [noalyss] 06/10: Improve autonumbering accounting, to force accounting in parent class, dwm, 2023/08/09
- [Noalyss-commit] [noalyss] 04/10: replace by NOALYSS_INCLUDE, dwm, 2023/08/09
- [Noalyss-commit] [noalyss] 02/10: set DBVERSION, dwm, 2023/08/09
- [Noalyss-commit] [noalyss] 10/10: TEST : for testing patch files, dwm, 2023/08/09
- [Noalyss-commit] [noalyss] 03/10: fix typo, dwm, 2023/08/09
- [Noalyss-commit] [noalyss] 05/10: Fix document generate,
dwm <=