Skip to content

Commit

Permalink
[BUGFIX] Fix array to string conversion in clone:list
Browse files Browse the repository at this point in the history
  • Loading branch information
grebaldi committed Mar 22, 2016
1 parent ddb70cf commit 9a1e3d0
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Classes/Sitegeist/MagicWand/Command/CloneCommandController.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,16 @@ public function listCommand()
foreach ($this->clonePresets as $presetName => $presetConfiguration) {
$this->outputHeadLine($presetName);
foreach ($presetConfiguration as $key => $value) {
if (is_array($value)) {
$this->outputLine(' - ' . $key . ':');

foreach ($value as $line) {
$this->outputLine(' ' . $line);
}

continue;
}

$this->outputLine(' - ' . $key . ': ' . $value);
}
}
Expand Down

0 comments on commit 9a1e3d0

Please sign in to comment.