From f3da885137a6257ee94e7dd499f6a656db150fa2 Mon Sep 17 00:00:00 2001 From: Sebastian Grewe Date: Fri, 17 May 2013 13:57:32 +0200 Subject: [PATCH] fix ordering for share contributors, for real --- 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 32fda095..8a277891 100644 --- a/public/include/classes/statistics.class.php +++ b/public/include/classes/statistics.class.php @@ -165,7 +165,7 @@ class Statistics { SUBSTRING_INDEX( username, '.', 1 ) AS account FROM " . $this->share->getTableName() . " GROUP BY account - ORDER BY shares + ORDER BY shares DESC LIMIT ?"); if ($this->checkStmt($stmt) && $stmt->bind_param("i", $limit) && $stmt->execute() && $result = $stmt->get_result()) return $result->fetch_all(MYSQLI_ASSOC);