From d6f5ffcd26a8d254c616cc3dd6d48d63e4639325 Mon Sep 17 00:00:00 2001 From: Kavalar Date: Thu, 11 May 2023 01:24:04 +0300 Subject: [PATCH] fix add user to project --- frontend/modules/api/controllers/ProjectController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/modules/api/controllers/ProjectController.php b/frontend/modules/api/controllers/ProjectController.php index c6c225c..efdab30 100644 --- a/frontend/modules/api/controllers/ProjectController.php +++ b/frontend/modules/api/controllers/ProjectController.php @@ -434,7 +434,7 @@ class ProjectController extends ApiController $model = new ProjectUser(); $model->load($request, ''); - if ($model->user->userCard){ + if (isset($model->user->userCard)){ $model->card_id = $model->user->userCard->id; }