chengwl пре 4 година
родитељ
комит
ac0bfa051c
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      lib/GA.php

+ 1 - 1
lib/GA.php

@@ -145,7 +145,7 @@ class GA{
             }
         }
         if(!empty($segment)){
-            $request->setSegments(array($segment));
+            $request->setSegments($segment);
         }
         if(isset($config['orderBy'])&&!empty($config['orderBy'])){
             $orderBy=new \Google_Service_AnalyticsReporting_OrderBy();