[FIX] Undefined Index in Workers page
This commit is contained in:
parent
ed1bbb5675
commit
e445ab4bbc
@ -141,6 +141,7 @@ class Worker extends Base {
|
|||||||
FROM $this->table AS w
|
FROM $this->table AS w
|
||||||
WHERE account_id = ?");
|
WHERE account_id = ?");
|
||||||
if ($this->checkStmt($stmt) && $stmt->bind_param('iiiii', $interval, $interval, $interval, $interval, $account_id) && $stmt->execute() && $result = $stmt->get_result()) {
|
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()) {
|
while ($row = $result->fetch_assoc()) {
|
||||||
$row['hashrate'] = round($this->coin->calcHashrate($row['shares'], $interval), 2);
|
$row['hashrate'] = round($this->coin->calcHashrate($row['shares'], $interval), 2);
|
||||||
if ($row['count_all'] > 0) {
|
if ($row['count_all'] > 0) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user