From 825a1dbf3e7db2025d4540cf6c3aae3bae39b320 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 28 Sep 2022 20:33:57 +0200 Subject: [PATCH] Update tva.class.php --- htdocs/compta/tva/class/tva.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/compta/tva/class/tva.class.php b/htdocs/compta/tva/class/tva.class.php index 9dce58171ae..d6efb35ef2f 100644 --- a/htdocs/compta/tva/class/tva.class.php +++ b/htdocs/compta/tva/class/tva.class.php @@ -345,8 +345,8 @@ class Tva extends CommonObject $this->fk_user_creat = $obj->fk_user_creat; $this->fk_user_modif = $obj->fk_user_modif; $this->fk_account = $obj->fk_account; - $this->fk_type = !empty($obj->fk_type) ? $obj->fk_type : ""; - $this->rappro = !empty($obj->fk_type) ? $obj->rappro : ""; + $this->fk_type = empty($obj->fk_type) ? "" : $obj->fk_type; + $this->rappro = empty($obj->rappro) ? "" : $obj->rappro; } $this->db->free($resql);