From 8b4ad00b1affb3eb0ea3a52189c2db97d129fbef Mon Sep 17 00:00:00 2001 From: Neozonz Date: Wed, 22 Jan 2014 07:33:01 -0500 Subject: [PATCH] [FIX] Fixed Data types for getHashrate --- public/include/classes/statistics.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/include/classes/statistics.class.php b/public/include/classes/statistics.class.php index 6faf1d0e..ed5237c3 100644 --- a/public/include/classes/statistics.class.php +++ b/public/include/classes/statistics.class.php @@ -528,7 +528,7 @@ class Statistics extends Base { AND time > DATE_SUB(now(), INTERVAL ? SECOND) AND our_result = 'Y') AS temp"); $username = $username . ".%"; - if ($this->checkStmt($stmt) && $stmt->bind_param("iiiii", $interval, $username, $interval, $username, $interval) && $stmt->execute() && $result = $stmt->get_result() ) + if ($this->checkStmt($stmt) && $stmt->bind_param("isisi", $interval, $username, $interval, $username, $interval) && $stmt->execute() && $result = $stmt->get_result() ) return $this->memcache->setCache(__FUNCTION__ . $account_id, $result->fetch_object()->hashrate); return $this->sqlError(); }