From 6f8a0948b7cce2bebffe24d2c944e169ca7ff6f0 Mon Sep 17 00:00:00 2001 From: hickert Date: Thu, 19 Aug 2010 15:11:47 +0000 Subject: [PATCH] Updated stats detection git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19414 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-core/plugins/generic/statistics/class_statistics.inc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/gosa-core/plugins/generic/statistics/class_statistics.inc b/gosa-core/plugins/generic/statistics/class_statistics.inc index 231db0e8e..4f834d3fe 100644 --- a/gosa-core/plugins/generic/statistics/class_statistics.inc +++ b/gosa-core/plugins/generic/statistics/class_statistics.inc @@ -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'); -- 2.30.2