From bf2429ab2f7a6f3ad306d3d85d8a3ab246950751 Mon Sep 17 00:00:00 2001 From: Sebastian Grewe Date: Thu, 10 Jul 2014 13:26:03 +0200 Subject: [PATCH] [FIX] Skip stat storage on missing data --- include/classes/statistics.class.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/classes/statistics.class.php b/include/classes/statistics.class.php index 51a63410..b7a65782 100644 --- a/include/classes/statistics.class.php +++ b/include/classes/statistics.class.php @@ -512,6 +512,8 @@ class Statistics extends Base { * @return bool true or false **/ public function storeAllUserMiningStatsSnapshot($aData) { + $this->debug->append("STA " . __METHOD__, 4); + if (!isset($aData['data'])) return false; // initilize $timestamp = time(); // Store all entries with the same timestamp to reduce cardinality $ok = 0;