[BUG] Fixed contrib shares with empty cache
This commit is contained in:
parent
88b2a35a7a
commit
50cc2da3a3
@ -417,8 +417,8 @@ class Statistics {
|
|||||||
ORDER BY shares DESC
|
ORDER BY shares DESC
|
||||||
LIMIT ?");
|
LIMIT ?");
|
||||||
if ($this->checkStmt($stmt) && $stmt->bind_param("i", $limit) && $stmt->execute() && $result = $stmt->get_result())
|
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));
|
return $this->memcache->setCache(__FUNCTION__ . $type . $limit, $result->fetch_all(MYSQLI_ASSOC));
|
||||||
$this->debug->append("Fetching shares failed: ");
|
$this->debug->append("Fetching shares failed: " . $this->mysqli->error);
|
||||||
return false;
|
return false;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user