From: Nicolas Boisselier Date: Wed, 26 Oct 2016 13:18:59 +0000 (+0100) Subject: fix bug out_human on array trim X-Git-Url: https://git.nbdom.net/?a=commitdiff_plain;h=bb87fdf096752b4bc8ed050297390a8116f62308;p=nb.git fix bug out_human on array trim --- diff --git a/lib/php/out.php b/lib/php/out.php index aa8e60c4..67a1cf1e 100644 --- a/lib/php/out.php +++ b/lib/php/out.php @@ -554,10 +554,8 @@ function out_human(&$o,&$row) { $o['_human']['len'] = []; } - foreach ($row as $k=>$v) { - $row[$k] = trim(str_replace("\n",' ',$v)); - } $line = out::row_csv($o,$row); + $line = str_replace('\n',' ',$line); # Search max length string $i = 0;