diff --git a/app/library/App/Controllers/GaController.php b/app/library/App/Controllers/GaController.php index 7a1c02c..a6d77d2 100644 --- a/app/library/App/Controllers/GaController.php +++ b/app/library/App/Controllers/GaController.php @@ -79,9 +79,9 @@ class GaController extends CrudResourceController { $response = $analytics->reports->batchGet($body); /** @var \Google_Service_AnalyticsReporting_Report $report */ - $report = $response->getReports(); + $report = $response->getReports()[0]; - $data = $report[0]->getData(); + $data = $report->getData(); return var_dump($data); -- libgit2 0.21.4