[FIX] PHP Notice

This commit is contained in:
Sebastian Grewe 2014-04-19 08:06:26 +02:00
parent d69e25427f
commit 1e1bbaaa92

View File

@ -190,6 +190,7 @@ class Worker extends Base {
FROM $this->table AS w
ORDER BY shares DESC LIMIT ?,?");
if ($this->checkStmt($stmt) && $stmt->bind_param('iiiiii', $interval, $interval, $interval, $interval, $start, $iLimit) && $stmt->execute() && $result = $stmt->get_result()) {
$aData = array();
while ($row = $result->fetch_assoc()) {
$row['hashrate'] = round($this->coin->calcHashrate($row['shares'], $interval), 2);
if ($row['count_all'] > 0) {