]> git.nbdom.net Git - nb.git/commitdiff
fix bug out_human on array trim
authorNicolas Boisselier <nicolas.boisselier@semantico.com>
Wed, 26 Oct 2016 13:18:59 +0000 (14:18 +0100)
committerNicolas Boisselier <nicolas.boisselier@semantico.com>
Wed, 26 Oct 2016 13:18:59 +0000 (14:18 +0100)
lib/php/out.php

index aa8e60c4dff8b2d72ed9aa8712df30d0626adaa9..67a1cf1e4533c8f1a35a5f8697b1e00262c0ad5d 100644 (file)
@@ -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;