diff options
author | Thomas Steur <thomas.steur@googlemail.com> | 2014-08-04 00:48:09 +0400 |
---|---|---|
committer | Thomas Steur <thomas.steur@googlemail.com> | 2014-08-06 11:02:56 +0400 |
commit | 7b30c0a5c13c02f0c2f6ebfd50627eba2c4f6c9e (patch) | |
tree | 5f6bfeed981a5ac69a399664a186786fa178fe87 /core | |
parent | 49b24c2e0cfbc1839b80d95f67f04f4420d8630f (diff) |
refs #5896 this should actually make it possible to use generic filters on arrays
Diffstat (limited to 'core')
-rw-r--r-- | core/API/ResponseBuilder.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/API/ResponseBuilder.php b/core/API/ResponseBuilder.php index 4eb0f9a1c8..6f3e6e6dc4 100644 --- a/core/API/ResponseBuilder.php +++ b/core/API/ResponseBuilder.php @@ -223,9 +223,9 @@ class ResponseBuilder $isAssoc = !empty($firstArray) && is_numeric($firstKey) && is_array($firstArray) && !Piwik::isMultiDimensionalArray($array) && count(array_filter(array_keys($firstArray), 'is_string')); if ($isAssoc) { - // $dataTable = DataTable::makeFromSimpleArray($array); + $dataTable = DataTable::makeFromSimpleArray($array); - // return $this->handleDataTable($dataTable); + return $this->handleDataTable($dataTable); } return $this->apiRenderer->renderArray($array); |