From dedfdaf59273619bdf03f7c20b8ccb587b6d5473 Mon Sep 17 00:00:00 2001 From: Alex Date: Sat, 18 Feb 2017 20:25:15 +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 a82b500..cbf6917 100644 --- a/app/library/App/Controllers/GaController.php +++ b/app/library/App/Controllers/GaController.php @@ -40,7 +40,7 @@ class GaController extends CrudResourceController { $projects = Project::find(['user_id' => $user_id]); foreach ($projects as $project) { $view_id = (string)$project->ga_view_id; - $result['name'] = $project->name; + $result[] = ['name' => $project->name]; $result[] = $this->sendGaRequest($view_id, $get_metrics, $get_dimensions, $get_start_date, $get_end_date); } } -- libgit2 0.21.4