From cacb8d2992db155a4e9407e26aa7a7538abffad0 Mon Sep 17 00:00:00 2001
From: Denis Walker <dez@sucs.org>
Date: Mon, 8 Dec 2008 00:12:32 +0000
Subject: [PATCH] Fixes election results bug - no "votes" column any more.

---
 components/election.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/components/election.php b/components/election.php
index ed681a0..7e524a7 100644
--- a/components/election.php
+++ b/components/election.php
@@ -40,7 +40,7 @@ if (!$session->loggedin) {
 		$role = $DB->GetAll("SELECT post FROM election_candidates GROUP BY post");
 
 		foreach ($role as $post) {
-			$candidate[$post['post']] = $DB->GetAll("SELECT username, manifesto_link FROM election_candidates WHERE post=? ORDER BY votes DESC", $post['post']);
+			$candidate[$post['post']] = $DB->GetAll("SELECT username, manifesto_link FROM election_candidates WHERE post=?", $post['post']);
 
 			$i=0;
 			foreach ($candidate[$post['post']] as $person) {
-- 
GitLab