From d750e81b02c8ae2c0228fb416392f10416e16f7b Mon Sep 17 00:00:00 2001 From: Sebastian Grewe Date: Wed, 26 Feb 2014 09:42:49 +0100 Subject: [PATCH] [FIX] Wait for global cache data, don't run queries --- public/include/classes/statistics.class.php | 1 + 1 file changed, 1 insertion(+) diff --git a/public/include/classes/statistics.class.php b/public/include/classes/statistics.class.php index 95310e8f..5b2eeacf 100644 --- a/public/include/classes/statistics.class.php +++ b/public/include/classes/statistics.class.php @@ -521,6 +521,7 @@ class Statistics extends Base { $retData['avgsharediff'] = $data['data'][$account_id]['avgsharediff']; return $retData; } + return array('hashrate' => (float)0, 'sharerate' => (float)0, 'avgsharediff' => (float)0); } if ($this->getGetCache() && $data = $this->memcache->get(__FUNCTION__ . $account_id)) return $data; $stmt = $this->mysqli->prepare("