From c0f7b2aab611e1cd771158124052080d576f487a Mon Sep 17 00:00:00 2001 From: Alex Date: Sun, 19 Feb 2017 15:07:56 +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 be01cde..da346b6 100644 --- a/app/library/App/Controllers/GaController.php +++ b/app/library/App/Controllers/GaController.php @@ -44,8 +44,8 @@ class GaController extends CrudResourceController { } } else { - $project = Project::find(['ga_view_id' => $view_id]); - $result = $this->sendGaRequest($project->name, $view_id, $get_metrics, $get_dimensions, $get_start_date, $get_end_date); + $project = Project::findFirst(['ga_view_id' => $view_id]); + $result = $this->sendGaRequest($project->name , $view_id, $get_metrics, $get_dimensions, $get_start_date, $get_end_date); } return $result; -- libgit2 0.21.4