diff --git a/apps/files_trashbin/lib/BackgroundJob/ExpireTrash.php b/apps/files_trashbin/lib/BackgroundJob/ExpireTrash.php index ea5a5121eaa..c9dc2d03073 100644 --- a/apps/files_trashbin/lib/BackgroundJob/ExpireTrash.php +++ b/apps/files_trashbin/lib/BackgroundJob/ExpireTrash.php @@ -77,6 +77,7 @@ class ExpireTrash extends TimedJob { // If the last batch was not full it means that we reached the end of the user list. if ($count < self::USER_BATCH_SIZE) { $this->resetOffset(); + break; } } }