Skip to content

Commit 3e10abc

Browse files
ComiRdfeyer
authored andcommitted
FIX: Correct access to array
1 parent 2682355 commit 3e10abc

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Classes/Flowpack/ElasticSearch/ContentRepositoryAdaptor/Command/NodeIndexCommandController.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -209,9 +209,9 @@ public function cleanupCommand()
209209
$removedIndices = $this->nodeIndexer->removeOldIndices();
210210
if (count($removedIndices) > 0) {
211211
if (count($removedIndices) === 1) {
212-
$this->logger->log('Removed old index ' . $removedIndices[0]);
212+
$this->logger->log('Removed old index ' . current($removedIndices) . '.');
213213
} else {
214-
$this->logger->log('Removed old indices ' . implode(', ', $removedIndices));
214+
$this->logger->log('Removed old indices ' . implode(', ', $removedIndices) . '.');
215215
}
216216
} else {
217217
$this->logger->log('Nothing to remove.');

0 commit comments

Comments
 (0)