Applying patch from 'michaelc' to optimize to Shell::out()

This commit is contained in:
mark_story 2009-09-19 00:20:40 -04:00
parent 317049b736
commit 9b7a10a4bc

View file

@ -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);
}