diff --git a/cake/console/libs/shell.php b/cake/console/libs/shell.php index eed6bff8e..4ca89a3c4 100644 --- a/cake/console/libs/shell.php +++ b/cake/console/libs/shell.php @@ -346,11 +346,7 @@ class Shell extends Object { */ function out($string, $newline = true) { if (is_array($string)) { - $str = ''; - foreach ($string as $message) { - $str .= $message ."\n"; - } - $string = $str; + $string = implode("\n", $string) . "\n"; } return $this->Dispatch->stdout($string, $newline); }