From 00ae3cd89ee7bbb1c0e427688e36ad6a7ba764a1 Mon Sep 17 00:00:00 2001 From: Noizette Date: Sun, 16 Apr 2023 00:04:47 +0200 Subject: [PATCH] Fix another PHP8 depreciation --- lib/Facture.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Facture.php b/lib/Facture.php index 7adf08e..aa2f23d 100644 --- a/lib/Facture.php +++ b/lib/Facture.php @@ -72,7 +72,7 @@ class Facture throw new UserException("Clé inattendue : $k."); } - if(!is_array($data)){ + if(!is_array($data) && null !== $data){ $datas[$k] = trim($data); } if ($datas[$k] === '' && $k != 'numero')