fix php warning supplier proposal class (#31872)

Co-authored-by: Hystepik <lmarcouiller@nltechno.com>
This commit is contained in:
Lucas Marcouiller 2024-11-16 00:08:41 +01:00 committed by GitHub
parent a0eb5515a8
commit 1637319d24
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1310,7 +1310,7 @@ class SupplierProposal extends CommonObject
$this->cond_reglement = $obj->cond_reglement;
$this->cond_reglement_doc = $obj->cond_reglement_libelle_doc;
$this->extraparams = (array) json_decode($obj->extraparams, true);
$this->extraparams = (array) (!empty($obj->extraparams) ? json_decode($obj->extraparams, true) : array());
$this->user_author_id = $obj->fk_user_author;
$this->user_validation_id = $obj->fk_user_valid;