Commit c0f7b2aab611e1cd771158124052080d576f487a
1 parent
0f07449b
ga output
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
app/library/App/Controllers/GaController.php
| ... | ... | @@ -44,8 +44,8 @@ class GaController extends CrudResourceController { |
| 44 | 44 | } |
| 45 | 45 | } |
| 46 | 46 | else { |
| 47 | - $project = Project::find(['ga_view_id' => $view_id]); | |
| 48 | - $result = $this->sendGaRequest($project->name, $view_id, $get_metrics, $get_dimensions, $get_start_date, $get_end_date); | |
| 47 | + $project = Project::findFirst(['ga_view_id' => $view_id]); | |
| 48 | + $result = $this->sendGaRequest($project->name , $view_id, $get_metrics, $get_dimensions, $get_start_date, $get_end_date); | |
| 49 | 49 | } |
| 50 | 50 | return $result; |
| 51 | 51 | ... | ... |