Browse Source

Merge branch 'develop'

master
Guillaume 4 years ago
parent
commit
c65be0c199
1 changed files with 7 additions and 3 deletions
  1. +7
    -3
      ShopBundle/Services/CsvGenerator.php

+ 7
- 3
ShopBundle/Services/CsvGenerator.php View File

@@ -61,9 +61,13 @@ class CsvGenerator

public function encodeArray($array)
{
return array_map(function($value) {
return $this->encode($value) ;
}, $array) ;
if($array && is_array($array)) {
return array_map(function($value) {
return $this->encode($value) ;
}, $array) ;
}

return $array ;
}

public function setTitle($title, $displayHeader = false){

Loading…
Cancel
Save