mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-12 04:23:19 +00:00
Fix array declaration
This commit is contained in:
@@ -600,7 +600,7 @@ class Users implements ControllerProviderInterface
|
||||
);
|
||||
$nbUsrToAdd = 0;
|
||||
|
||||
$lines = [];
|
||||
$lines = array();
|
||||
$app['csv.interpreter']->addObserver(function(array $row) use (&$lines) {
|
||||
$lines[] = $row;
|
||||
});
|
||||
|
@@ -852,7 +852,7 @@ class Activity implements ControllerProviderInterface
|
||||
private function getCSVResponse(Application $app, \module_report $report, $type)
|
||||
{
|
||||
// set headers
|
||||
$headers = [];
|
||||
$headers = array();
|
||||
foreach (array_keys($report->getDisplay()) as $k) {
|
||||
$headers[$k] = $k;
|
||||
}
|
||||
|
@@ -510,7 +510,7 @@ class Informations implements ControllerProviderInterface
|
||||
private function getCSVResponse(Application $app, \module_report $report, $type)
|
||||
{
|
||||
// set headers
|
||||
$headers = [];
|
||||
$headers = array();
|
||||
foreach (array_keys($report->getDisplay()) as $k) {
|
||||
$headers[$k] = $k;
|
||||
}
|
||||
|
@@ -675,7 +675,7 @@ class Root implements ControllerProviderInterface
|
||||
private function getCSVResponse(Application $app, \module_report $report, $type)
|
||||
{
|
||||
// set headers
|
||||
$headers = [];
|
||||
$headers = array();
|
||||
foreach (array_keys($report->getDisplay()) as $k) {
|
||||
$headers[$k] = $k;
|
||||
}
|
||||
|
Reference in New Issue
Block a user