diff --git a/typo3/sysext/lowlevel/Classes/Command/OrphanRecordsCommand.php b/typo3/sysext/lowlevel/Classes/Command/OrphanRecordsCommand.php index c1ebdcc2cdd9f43ed5b6e1bf2144e853827c327a..c264ed27e5578226e35f2f3e8b4fee4b9312fed4 100644 --- a/typo3/sysext/lowlevel/Classes/Command/OrphanRecordsCommand.php +++ b/typo3/sysext/lowlevel/Classes/Command/OrphanRecordsCommand.php @@ -109,22 +109,17 @@ Manual repair suggestions: ->orderBy('uid') ->execute(); - $totalOrphans = 0; $rowCount = $queryBuilder->count('uid')->execute()->fetchColumn(0); if ($rowCount) { $orphans[$tableName] = []; while ($orphanRecord = $result->fetch()) { $orphans[$tableName][$orphanRecord['uid']] = $orphanRecord['uid']; } - $totalOrphans += count($orphans[$tableName]); - if ($io->isVeryVerbose() && count($orphans[$tableName])) { - $io->writeln('Found ' . count($orphans[$tableName]) . ' orphan records in table "' . $tableName . '".'); + if (count($orphans[$tableName])) { + $io->note('Found ' . count($orphans[$tableName]) . ' orphan records in table "' . $tableName . '" with following ids: ' . implode(', ', $orphans[$tableName])); } } - if (!$io->isQuiet() && $totalOrphans) { - $io->note('Found ' . $totalOrphans . ' records in ' . count($orphans) . ' database tables.'); - } } if (count($orphans)) {