do not pass two arguments to SQL

This commit is contained in:
Sebastian Grewe 2013-06-06 11:01:04 +02:00
parent 52d079eaed
commit 232e79f7ad

View File

@ -311,7 +311,7 @@ class Statistics {
AND a.id = ?
GROUP BY HOUR(time)
");
if ($this->checkStmt($stmt) && $stmt->bind_param("ii", $account_id, $account_id) && $stmt->execute() && $result = $stmt->get_result())
if ($this->checkStmt($stmt) && $stmt->bind_param("i", $account_id) && $stmt->execute() && $result = $stmt->get_result())
return $this->memcache->setCache(__FUNCTION__ . $account_id, $result->fetch_all(MYSQLI_ASSOC), 3600);
// Catchall
$this->debug->append("Failed to fetch hourly hashrate: " . $this->mysqli->error);