commit
Showing
1 changed file
with
2 additions
and
2 deletions
| ... | @@ -102,12 +102,12 @@ function CSVExport($arr) { | ... | @@ -102,12 +102,12 @@ function CSVExport($arr) { |
| 102 | $out .= "\n"; | 102 | $out .= "\n"; |
| 103 | while ($curr_row = current($arr)) { | 103 | while ($curr_row = current($arr)) { |
| 104 | $col = 1; | 104 | $col = 1; |
| 105 | while (false !== ($curr_field = current($curr_row))) { | 105 | foreach($curr_row as $curr_field) { |
| 106 | if ($col > 1) { | 106 | if ($col > 1) { |
| 107 | $out .= ","; | 107 | $out .= ","; |
| 108 | } | 108 | } |
| 109 | $out .= '"'.str_replace( '"', '\"',$curr_field).'"'; | 109 | $out .= '"'.str_replace( '"', '\"',$curr_field).'"'; |
| 110 | next($curr_row); | 110 | |
| 111 | $col++; | 111 | $col++; |
| 112 | } | 112 | } |
| 113 | while($col <= $num) { | 113 | while($col <= $num) { | ... | ... |
-
Please register or sign in to post a comment