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; }