chengwl 4 gadi atpakaļ
vecāks
revīzija
c65e124d01
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      lib/GA.php

+ 1 - 1
lib/GA.php

@@ -646,7 +646,7 @@ class GA{
         $reports= $analytics->reports->batchGet( $body );
         $reports= $analytics->reports->batchGet( $body );
         
         
         $result=$this->getResults($reports);
         $result=$this->getResults($reports);
-         return $result;
+         return $result[0]??[];
 
 
     }
     }
     public function storeSellData($dp,$start_at,$end_at,$type="day"){
     public function storeSellData($dp,$start_at,$end_at,$type="day"){