From f3ea4b97eb49872e0f9e53d66b99191bd4b67000 Mon Sep 17 00:00:00 2001 From: Alex Date: Fri, 17 Feb 2017 21:07:48 +0200 Subject: [PATCH] ga output --- app/library/App/Controllers/GaController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/library/App/Controllers/GaController.php b/app/library/App/Controllers/GaController.php index e40d5b0..ae41f4f 100644 --- a/app/library/App/Controllers/GaController.php +++ b/app/library/App/Controllers/GaController.php @@ -78,7 +78,7 @@ class GaController extends CrudResourceController { $response = $analytics->reports->batchGet($body); - $response = $response->getReports(); + $response = $response->current(); $obj = $response->toSimpleObject(); $obj = $obj->reports[0]['data']['rows']; -- libgit2 0.21.4