summaryrefslogtreecommitdiffstats
path: root/lib/private/Repair/RemoveRootShares.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/private/Repair/RemoveRootShares.php')
-rw-r--r--lib/private/Repair/RemoveRootShares.php21
1 files changed, 2 insertions, 19 deletions
diff --git a/lib/private/Repair/RemoveRootShares.php b/lib/private/Repair/RemoveRootShares.php
index 1fd7d8d7dae..69fcb1b4492 100644
--- a/lib/private/Repair/RemoveRootShares.php
+++ b/lib/private/Repair/RemoveRootShares.php
@@ -96,31 +96,14 @@ class RemoveRootShares implements IRepairStep {
$output->advance();
};
- $userCount = $this->countUsers();
- $output->startProgress($userCount);
+ $output->startProgress($this->userManager->countSeenUsers());
- $this->userManager->callForAllUsers($function);
+ $this->userManager->callForSeenUsers($function);
$output->finishProgress();
}
/**
- * Count all the users
- *
- * @return int
- */
- private function countUsers() {
- $allCount = $this->userManager->countUsers();
-
- $totalCount = 0;
- foreach ($allCount as $backend => $count) {
- $totalCount += $count;
- }
-
- return $totalCount;
- }
-
- /**
* Verify if this repair steps is required
* It *should* not be necessary in most cases and it can be very
* costly.