From e445ab4bbc447296990c61793cb624a90f167669 Mon Sep 17 00:00:00 2001 From: Sebastian Grewe Date: Thu, 1 May 2014 09:26:23 +0200 Subject: [PATCH] [FIX] Undefined Index in Workers page --- public/include/classes/worker.class.php | 1 + 1 file changed, 1 insertion(+) diff --git a/public/include/classes/worker.class.php b/public/include/classes/worker.class.php index 570dcd32..f47445ae 100644 --- a/public/include/classes/worker.class.php +++ b/public/include/classes/worker.class.php @@ -141,6 +141,7 @@ class Worker extends Base { FROM $this->table AS w WHERE account_id = ?"); if ($this->checkStmt($stmt) && $stmt->bind_param('iiiii', $interval, $interval, $interval, $interval, $account_id) && $stmt->execute() && $result = $stmt->get_result()) { + $aData = array(); while ($row = $result->fetch_assoc()) { $row['hashrate'] = round($this->coin->calcHashrate($row['shares'], $interval), 2); if ($row['count_all'] > 0) {