From 9b7a10a4bcba7b761f88e67f6c06e28537617a03 Mon Sep 17 00:00:00 2001 From: mark_story Date: Sat, 19 Sep 2009 00:20:40 -0400 Subject: [PATCH] Applying patch from 'michaelc' to optimize to Shell::out() --- cake/console/libs/shell.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) 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); }