[BUG] Fixed contrib shares with empty cache

This commit is contained in:
Sebastian Grewe 2013-09-18 16:23:34 +02:00
parent 88b2a35a7a
commit 50cc2da3a3

View File

@ -417,8 +417,8 @@ class Statistics {
ORDER BY shares DESC
LIMIT ?");
if ($this->checkStmt($stmt) && $stmt->bind_param("i", $limit) && $stmt->execute() && $result = $stmt->get_result())
$this->memcache->set(__FUNCTION__ . $type . $limit, $result->fetch_all(MYSQLI_ASSOC));
$this->debug->append("Fetching shares failed: ");
return $this->memcache->setCache(__FUNCTION__ . $type . $limit, $result->fetch_all(MYSQLI_ASSOC));
$this->debug->append("Fetching shares failed: " . $this->mysqli->error);
return false;
break;