Skip to content

Commit e445ab4

Browse files
committed
[FIX] Undefined Index in Workers page
1 parent ed1bbb5 commit e445ab4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

public/include/classes/worker.class.php

+1
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,7 @@ public function getWorkers($account_id, $interval=600) {
141141
FROM $this->table AS w
142142
WHERE account_id = ?");
143143
if ($this->checkStmt($stmt) && $stmt->bind_param('iiiii', $interval, $interval, $interval, $interval, $account_id) && $stmt->execute() && $result = $stmt->get_result()) {
144+
$aData = array();
144145
while ($row = $result->fetch_assoc()) {
145146
$row['hashrate'] = round($this->coin->calcHashrate($row['shares'], $interval), 2);
146147
if ($row['count_all'] > 0) {

0 commit comments

Comments
 (0)