diff --git a/app/common/model/project/ProjectLaborContract.php b/app/common/model/project/ProjectLaborContract.php index d59b24316..bca9f9a1d 100644 --- a/app/common/model/project/ProjectLaborContract.php +++ b/app/common/model/project/ProjectLaborContract.php @@ -33,7 +33,7 @@ class ProjectLaborContract extends BaseModel public function getAnnexAttr($value) { - return json_decode($value,true); + return !empty($value) ? json_decode($value,true) : ''; } public function getSigningDateAttr($value): string