fixed - Undefined index: count_all
This commit is contained in:
parent
0307e1e62d
commit
70ea8f1609
@ -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) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user