Skip to content

Commit 70ea8f1

Browse files
committed
fixed - Undefined index: count_all
1 parent 0307e1e commit 70ea8f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/classes/worker.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ public function getWorker($id, $interval=600) {
124124
) AS shares
125125
FROM $this->table AS w
126126
WHERE id = ?");
127-
if ($this->checkStmt($stmt) && $stmt->bind_param('iiiii', $interval, $interval, $interval, $interval, $id) && $stmt->execute() && $result = $stmt->get_result()) {
127+
if ($this->checkStmt($stmt) && $stmt->bind_param('iiiii', $interval, $interval, $interval, $interval, $id) && $stmt->execute() && ($result = $stmt->get_result())) {
128128
$row = $result->fetch_assoc();
129129
$row['hashrate'] = round($this->coin->calcHashrate($row['shares'], $interval), 2);
130130
if ($row['count_all'] > 0) {

0 commit comments

Comments
 (0)