Skip to content

Commit

Permalink
Merge pull request #45587 from nextcloud/backport/36942/stable29
Browse files Browse the repository at this point in the history
  • Loading branch information
skjnldsv authored Jun 7, 2024
2 parents 5d96224 + 81459ea commit 8070f70
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion apps/user_ldap/lib/User/DeletedUsersIndex.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,12 @@ private function fetchDeletedUsers(): array {

$userObjects = [];
foreach ($deletedUsers as $user) {
$userObjects[] = new OfflineUser($user, $this->config, $this->mapping, $this->shareManager);
$userObject = new OfflineUser($user, $this->config, $this->mapping, $this->shareManager);
if ($userObject->getLastLogin() > $userObject->getDetectedOn()) {
$userObject->unmark();
} else {
$userObjects[] = $userObject;
}
}
$this->deletedUsers = $userObjects;

Expand Down

0 comments on commit 8070f70

Please sign in to comment.