Skip to content

Commit 6f34ee4

Browse files
omit file removal if identifier is empty
1 parent 8f2e051 commit 6f34ee4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Classes/Command/UnduplicateCommand.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -561,6 +561,9 @@ private function findAndDeleteOldProcessedFile(int $oldFileUid): void
561561
)
562562
->executeQuery();
563563
while ($record = $results->fetchAssociative()) {
564+
if(empty($record['identifier'])) {
565+
continue;
566+
}
564567
// delete each file from file system
565568
$this->output->writeln('<info>Deleting processed file ' . $record['identifier'] . '</info>');
566569
$this->deleteProcessedFile($record['identifier']);

0 commit comments

Comments
 (0)