From 70ea8f1609467e79e33d8f3cba45356555898b1a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Blon=C4=8F=C3=A1k?= Date: Mon, 4 Sep 2017 20:05:13 +0200 Subject: [PATCH] fixed - Undefined index: count_all --- include/classes/worker.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/classes/worker.class.php b/include/classes/worker.class.php index cb13387f..d87b0480 100644 --- a/include/classes/worker.class.php +++ b/include/classes/worker.class.php @@ -124,7 +124,7 @@ class Worker extends Base { ) AS shares FROM $this->table AS w WHERE id = ?"); - if ($this->checkStmt($stmt) && $stmt->bind_param('iiiii', $interval, $interval, $interval, $interval, $id) && $stmt->execute() && $result = $stmt->get_result()) { + if ($this->checkStmt($stmt) && $stmt->bind_param('iiiii', $interval, $interval, $interval, $interval, $id) && $stmt->execute() && ($result = $stmt->get_result())) { $row = $result->fetch_assoc(); $row['hashrate'] = round($this->coin->calcHashrate($row['shares'], $interval), 2); if ($row['count_all'] > 0) {