fix login
This commit is contained in:
1 parent
c691273d02
commit
03b25a796d
2 files changed
+15
-6
No files matched your search
@@ -17,8 +17,11 @@ class User extends \common\models\User
|
||||
'email',
|
||||
'username',
|
||||
'userCard' => function () {
|
||||
$userCard = new UserCardSearch();
|
||||
return ProfileService::getProfileById($this->userCard->id);
|
||||
if(isset($this->userCard->id)){
|
||||
return ProfileService::getProfileById($this->userCard->id);
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
];
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user