Chec for missing profile first
This commit is contained in:
parent
e994d02791
commit
c17f23423f
1 changed files with 3 additions and 3 deletions
|
@ -391,12 +391,12 @@ class User
|
|||
if (!DBA::exists('user', ['uid' => $uid]) || !$repairMissing) {
|
||||
return false;
|
||||
}
|
||||
if (!DBA::exists('contact', ['uid' => $uid, 'self' => true])) {
|
||||
Contact::createSelfFromUserId($uid);
|
||||
}
|
||||
if (!DBA::exists('profile', ['uid' => $uid])) {
|
||||
DBA::insert('profile', ['uid' => $uid]);
|
||||
}
|
||||
if (!DBA::exists('contact', ['uid' => $uid, 'self' => true])) {
|
||||
Contact::createSelfFromUserId($uid);
|
||||
}
|
||||
$owner = self::getOwnerDataById($uid, false);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue