diff --git a/apps/files_trashbin/lib/BackgroundJob/ExpireTrash.php b/apps/files_trashbin/lib/BackgroundJob/ExpireTrash.php index 8d3dad4a17a..bbdf0b899bd 100644 --- a/apps/files_trashbin/lib/BackgroundJob/ExpireTrash.php +++ b/apps/files_trashbin/lib/BackgroundJob/ExpireTrash.php @@ -78,6 +78,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; } } }