[FIX] Skip stat storage on missing data

This commit is contained in:
Sebastian Grewe 2014-07-10 13:26:03 +02:00
parent b758ee9395
commit bf2429ab2f

View File

@ -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;