Fix another PHP8 depreciation

This commit is contained in:
Noizette 2023-04-16 00:04:47 +02:00
parent 56f90fad60
commit 00ae3cd89e

View File

@ -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')