An empty user id does not have children

This commit is contained in:
Michael 2021-06-19 06:27:25 +00:00
parent 08c4d7eedc
commit 7dd5ea42e9
2 changed files with 8 additions and 2 deletions

View file

@ -342,8 +342,10 @@ class Authentication
$this->dba->update('user', ['login_date' => DateTimeFormat::utcNow()], ['uid' => $user_record['uid']]);
// Set the login date for all identities of the user
$this->dba->update('user', ['login_date' => DateTimeFormat::utcNow()],
['parent-uid' => $masterUid, 'account_removed' => false]);
if (!empty($masterUid)) {
$this->dba->update('user', ['login_date' => DateTimeFormat::utcNow()],
['parent-uid' => $masterUid, 'account_removed' => false]);
}
}
if ($login_initial) {