From cf9e3928678452b0247a748a7c644055f029a4ec Mon Sep 17 00:00:00 2001 From: Sebastian Grewe Date: Fri, 17 May 2013 13:56:11 +0200 Subject: [PATCH] fix ordering for share contributors --- public/include/classes/statistics.class.php | 1 + 1 file changed, 1 insertion(+) diff --git a/public/include/classes/statistics.class.php b/public/include/classes/statistics.class.php index 7629cd48..32fda095 100644 --- a/public/include/classes/statistics.class.php +++ b/public/include/classes/statistics.class.php @@ -165,6 +165,7 @@ class Statistics { SUBSTRING_INDEX( username, '.', 1 ) AS account FROM " . $this->share->getTableName() . " GROUP BY account + ORDER BY shares LIMIT ?"); if ($this->checkStmt($stmt) && $stmt->bind_param("i", $limit) && $stmt->execute() && $result = $stmt->get_result()) return $result->fetch_all(MYSQLI_ASSOC);