From 63bee473de335b6a2eb23e03536d33cc7d70a3bd Mon Sep 17 00:00:00 2001 From: sparkyx Date: Wed, 29 Oct 2025 09:53:33 +0100 Subject: [PATCH] Compatibility PHP8.3 and Typo --- html/install.php | 2 +- include/XMLDocument/xmlinvoice_reader.class.php | 2 +- include/class/acc_operation.class.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/html/install.php b/html/install.php index ff3f54ed3..b708fef98 100644 --- a/html/install.php +++ b/html/install.php @@ -496,7 +496,7 @@ $majeur=explode(".",$version); if ( $majeur[0] < 12 ) { ?> -

diff --git a/include/XMLDocument/xmlinvoice_reader.class.php b/include/XMLDocument/xmlinvoice_reader.class.php index 8df950906..7d723841e 100644 --- a/include/XMLDocument/xmlinvoice_reader.class.php +++ b/include/XMLDocument/xmlinvoice_reader.class.php @@ -92,7 +92,7 @@ class XMLInvoice_Reader return new XMLInvoice_Reader($dm); } else { - throw new \Exception("XR55: not a valid XML"); + throw new \Exception("XR55: not a valid XML",55); } } diff --git a/include/class/acc_operation.class.php b/include/class/acc_operation.class.php index 74420c309..3ac02140f 100644 --- a/include/class/acc_operation.class.php +++ b/include/class/acc_operation.class.php @@ -1123,7 +1123,7 @@ class Acc_Detail extends Acc_Operation $this->det->note=""; $this->det->note_html=null; } else { - $this->det->note=strip_tags($a['n_text']); + $this->det->note=strip_tags($a['n_text']??""); $this->det->note_html=($a['n_html'] == "")?$a['n_text']:$a['n_html']; } }