From 26b0f70c6bb576f157c912bd16c39a9c8d7990d3 Mon Sep 17 00:00:00 2001 From: Alex Date: Fri, 17 Feb 2017 20:29:36 +0200 Subject: [PATCH] ga output --- app/library/App/Controllers/GaController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/library/App/Controllers/GaController.php b/app/library/App/Controllers/GaController.php index cc20a31..76ce057 100644 --- a/app/library/App/Controllers/GaController.php +++ b/app/library/App/Controllers/GaController.php @@ -81,12 +81,12 @@ class GaController extends CrudResourceController { $obj = $response->toSimpleObject(); $obj = $obj->reports[0]['data']['rows']; - return ($obj); + //return ($obj); $result = []; foreach ($obj as $key => $value) { - $result[$key['dimensions']][0] = $value->values; + $result[$key['dimensions']][0] = $value['values'][0]; } return $result; -- libgit2 0.21.4