chengwl %!s(int64=4) %!d(string=hai) anos
pai
achega
ac0bfa051c
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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();