Code

Updated stats detection
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 19 Aug 2010 15:11:47 +0000 (15:11 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 19 Aug 2010 15:11:47 +0000 (15:11 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19414 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/plugins/generic/statistics/class_statistics.inc

index 231db0e8e0ac621ef542eed70ee35b55a70a2f54..4f834d3fe493ca2bd84583cf81c563cedf6a9b97 100644 (file)
@@ -83,7 +83,11 @@ class statistics extends plugin
     {
         $available = $this->getLocalStatisticsFiles();
         $alreadyTransmitted = $this->getStatisticsDatesFromServer();
-        $unsubmitted = array_intersect($available,$alreadyTransmitted);
+
+        $unsubmitted = array();
+        foreach($available as $key => $day){
+            if(!isset($alreadyTransmitted[$key])) $unsubmitted [$key] = $day;
+        }
 
         // Exclude statistic collection from today, they are still active and cannot be submitted.
         $curDate =  date('Y-m-d');