Commit f842989cce050183128870bed7e7e92d1c3f19c9

Authored by Alex Savenko
1 parent 65b1cb95

ga output

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
app/library/App/Controllers/GaController.php
... ... @@ -90,7 +90,7 @@ class GaController extends CrudResourceController {
90 90 $metric_val = $item['metrics'][0]['values'];
91 91 $dimension_val = $item['dimensions'][0];
92 92  
93   - if (is_array($metric_val)) {
  93 + if (count($metric_val) > 1) {
94 94 for ($i = 0; $i < count($metric_val); $i++) {
95 95 $result[$dimension_val][] = $metric_val[$i];
96 96 }
... ...