From 1c76738797843d27df8fa29450816608e3e95a09 Mon Sep 17 00:00:00 2001 From: HENRY Florian Date: Sat, 27 Apr 2024 04:21:42 +0200 Subject: [PATCH] fix: php warning on migration (#29466) --- htdocs/core/modules/modFacture.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/core/modules/modFacture.class.php b/htdocs/core/modules/modFacture.class.php index a8bc0af24286c..10123bb9b6491 100644 --- a/htdocs/core/modules/modFacture.class.php +++ b/htdocs/core/modules/modFacture.class.php @@ -487,8 +487,8 @@ public function __construct($db) // Exports //-------- - $uselocaltax1 = $mysoc->localtax1_assuj; - $uselocaltax2 = $mysoc->localtax2_assuj; + $uselocaltax1 = $mysoc->localtax1_assuj ?? null; + $uselocaltax2 = $mysoc->localtax2_assuj ?? null; $r = 1;