fix ordering for share contributors
This commit is contained in:
parent
972be48ba8
commit
cf9e392867
@ -165,6 +165,7 @@ class Statistics {
|
|||||||
SUBSTRING_INDEX( username, '.', 1 ) AS account
|
SUBSTRING_INDEX( username, '.', 1 ) AS account
|
||||||
FROM " . $this->share->getTableName() . "
|
FROM " . $this->share->getTableName() . "
|
||||||
GROUP BY account
|
GROUP BY account
|
||||||
|
ORDER BY shares
|
||||||
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())
|
||||||
return $result->fetch_all(MYSQLI_ASSOC);
|
return $result->fetch_all(MYSQLI_ASSOC);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user